<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Wie pausiere ich einen Thread und continue ihn später wieder?]]></title><description><![CDATA[<p>hier ich hab hier ne APIanwendung und in der möchte ich mit einen button einen Thread pausieren und wieder continuen... wie mach ich das?</p>
<p>Gruss Tobi</p>
<p>An ALLE ~ Frohes Neues ~</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/169346/wie-pausiere-ich-einen-thread-und-continue-ihn-später-wieder</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 20:04:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/169346.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Jan 2007 14:49:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wie pausiere ich einen Thread und continue ihn später wieder? on Thu, 04 Jan 2007 14:49:41 GMT]]></title><description><![CDATA[<p>hier ich hab hier ne APIanwendung und in der möchte ich mit einen button einen Thread pausieren und wieder continuen... wie mach ich das?</p>
<p>Gruss Tobi</p>
<p>An ALLE ~ Frohes Neues ~</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202785</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202785</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Thu, 04 Jan 2007 14:49:41 GMT</pubDate></item><item><title><![CDATA[Reply to Wie pausiere ich einen Thread und continue ihn später wieder? on Thu, 04 Jan 2007 14:51:21 GMT]]></title><description><![CDATA[<p>CreateEvent, WaitForSingleObject, SetEvent, CloseHandle</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202788</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202788</guid><dc:creator><![CDATA[befehle]]></dc:creator><pubDate>Thu, 04 Jan 2007 14:51:21 GMT</pubDate></item><item><title><![CDATA[Reply to Wie pausiere ich einen Thread und continue ihn später wieder? on Thu, 04 Jan 2007 15:38:16 GMT]]></title><description><![CDATA[<p>vieleicht gehts noch etwas exakter?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202842</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202842</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Thu, 04 Jan 2007 15:38:16 GMT</pubDate></item><item><title><![CDATA[Reply to Wie pausiere ich einen Thread und continue ihn später wieder? on Thu, 04 Jan 2007 15:52:06 GMT]]></title><description><![CDATA[<p>Nimm <em>CreateEvent</em> und setze den zugehörigen Handle mit <em>SetEvent</em> auf 'signaled' (in Deinem Hauptthread). Im Thread überprüfst Du dann in etwa so:</p>
<pre><code class="language-cpp">if(WaitForSingleObject(hEvent, INFINITE) == WAIT_OBJECT_0)
   // Und weiter gehts...
</code></pre>
<p>Wenn Du dann mit <em>ResetEvent</em> den Event-Handle zurücksetzt, wird Dein Thread fortfahren, da die Funktion <em>WaitForSingleObject</em> den Thread solange blockiert, bis das 'Event' <em>hEvent</em> wieder zurückgesetzt ist, also 'un-signaled' ist.</p>
<p>Das Allg. Thema dazu lautet Thread-Synchronisation, siehe hier:<br />
<a href="http://msdn2.microsoft.com/en-us/library/ms686360.aspx" rel="nofollow">Synchronization Functions (MSDN)</a><br />
<a href="http://msdn2.microsoft.com/en-us/library/ms686353.aspx" rel="nofollow">Synchronization</a><br />
<a href="http://msdn2.microsoft.com/en-us/library/ms682396.aspx" rel="nofollow">CreateEvent</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1202863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1202863</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Thu, 04 Jan 2007 15:52:06 GMT</pubDate></item></channel></rss>