<?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[Frage zu Thread Events ??]]></title><description><![CDATA[<p>Also soviel ich bisher herausgefunden und studiert habe, kann über die Funktion WaitForSingleObject auf ein bestimmtes Event (CEvent) welche durch ein Thread gesetzt wird gewartet werden.</p>
<p>Über die Funktion WaitForMultpliObjects wird über die das Thread-Handle auf BEENDINGUNG eines Thread gewartet, und auf ekein Event!?!?! Seh ich das richtig?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/176209/frage-zu-thread-events</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 13:33:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/176209.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Mar 2007 07:36:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Frage zu Thread Events ?? on Mon, 19 Mar 2007 07:36:06 GMT]]></title><description><![CDATA[<p>Also soviel ich bisher herausgefunden und studiert habe, kann über die Funktion WaitForSingleObject auf ein bestimmtes Event (CEvent) welche durch ein Thread gesetzt wird gewartet werden.</p>
<p>Über die Funktion WaitForMultpliObjects wird über die das Thread-Handle auf BEENDINGUNG eines Thread gewartet, und auf ekein Event!?!?! Seh ich das richtig?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248126</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248126</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Mon, 19 Mar 2007 07:36:06 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Thread Events ?? on Mon, 19 Mar 2007 07:46:24 GMT]]></title><description><![CDATA[<p>BorisDieKlinge schrieb:</p>
<blockquote>
<p>Also soviel ich bisher herausgefunden und studiert habe, kann über die Funktion WaitForSingleObject auf ein bestimmtes Event (CEvent) welche durch ein Thread gesetzt wird gewartet werden.</p>
</blockquote>
<p>Nicht nur Events. In der Dokumentation steht doch, auf was du warten kannst.</p>
<blockquote>
<p>Über die Funktion WaitForMultpliObjects wird über die das Thread-Handle auf BEENDINGUNG eines Thread gewartet, und auf ekein Event!?!?! Seh ich das richtig?</p>
</blockquote>
<p>Nein. Der Unterschied zwischen WaitForSingleObject und WaitForMultipleObjects besteht nur darin, dass WaitForMultipleObjects eben auf mehrere Handles gleichzeitig warten kann. Steht aber auch in der Dokumentation.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248131</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248131</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 19 Mar 2007 07:46:24 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Thread Events ?? on Mon, 19 Mar 2007 07:53:00 GMT]]></title><description><![CDATA[<p>achso... naja hatte da immer Problem d.h. ich kann ein CEvent Array verwenden, und wenn bspw. alle Events des Array gestzt sind, reagiert das WaitfForsingleObjects!?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248134</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248134</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Mon, 19 Mar 2007 07:53:00 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Thread Events ?? on Mon, 19 Mar 2007 08:04:38 GMT]]></title><description><![CDATA[<p>BorisDieKlinge schrieb:</p>
<blockquote>
<p>achso... naja hatte da immer Problem d.h. ich kann ein CEvent Array verwenden, und wenn bspw. alle Events des Array gestzt sind, reagiert das WaitfForsingleObjects!?</p>
</blockquote>
<p>Mit WaitForSingleObject kannst du nur auf <strong>ein</strong> Objekt warten.</p>
<p>Und mit WaitForMultipleObjects kannst du nur auf ein Array von HANDLEs warten, nicht auf ein Array von CEvent-Objekten.</p>
<p>MSDN Library schrieb:</p>
<blockquote>
<p>lpHandles<br />
[in] Pointer to an array of object handles</p>
</blockquote>
<p>Da steht nichts von CEvent. Welchen Teil davon verstehst du nicht? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Wenn du unbedingt mit CEvent arbeiten willst, dann schau dir CMultiLock an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248138</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248138</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 19 Mar 2007 08:04:38 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Thread Events ?? on Mon, 19 Mar 2007 08:14:47 GMT]]></title><description><![CDATA[<p>Es geht draum das ich mehrere Thread laufen habe, jeder Thread soll je nach bedingung ein CEvent Objekt setzen (pr thread ein Elem des CEvent Arrays). Und ein Weitere thread soll warten bis alle Thread ihr CEvent gestezt haben.</p>
<p>verstanden das problem?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248142</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248142</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Mon, 19 Mar 2007 08:14:47 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Thread Events ?? on Mon, 19 Mar 2007 08:17:22 GMT]]></title><description><![CDATA[<p>Dann tu, was ich dir oben geraten habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248144</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248144</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 19 Mar 2007 08:17:22 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Thread Events ?? on Mon, 19 Mar 2007 08:25:27 GMT]]></title><description><![CDATA[<p>kannst du mir erklären wie ich das mit CMutliLock mache? das meintes tdu ja? sehe kein Bezug zwischen CMutlilock und &quot;WaitFor.....&quot;.</p>
<p>sorry wenn ich aufm Schlauch stehe, aber ich bin Anfänger was Threading angeht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248149</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248149</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Mon, 19 Mar 2007 08:25:27 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Thread Events ?? on Mon, 19 Mar 2007 08:35:00 GMT]]></title><description><![CDATA[<p>Zuerst mal: Die ganzen MFC Klassen kapseln die ganzen WinAPI Funktionen!<br />
Aus diesem Grunde ist es nicht sehr ratsam beiden zu mischen; sonst kommst Du nur durcheinander!</p>
<p>Also: Entweder verwende die MFC Klassen oder mach alles mit der WinAPI.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248156</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248156</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 19 Mar 2007 08:35:00 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Thread Events ?? on Mon, 19 Mar 2007 08:36:04 GMT]]></title><description><![CDATA[<p>BorisDieKlinge schrieb:</p>
<blockquote>
<p>kannst du mir erklären wie ich das mit CMutliLock mache?</p>
</blockquote>
<p>Das steht doch in der MSDN Library. Fängt an mit &quot;To use a CMultiLock object...&quot;</p>
<p>Wenn du ein <em>konkretes</em> Probleme bei der Umsetzung hast, dann frag hier nach.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248158</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248158</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 19 Mar 2007 08:36:04 GMT</pubDate></item></channel></rss>