<?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[Boost::Thread auf Klassenfunktion]]></title><description><![CDATA[<p>Hallo,<br />
wie kann ich mit boost::thread einen neuen Thread erstellen, wo die aufzurufende Funktion eine InstanzFunktion aus einer Klasse ist?</p>
<pre><code class="language-cpp">class Foo
{
public:
  void Start()
  {
    this-&gt;m_thr = boost::thread(&amp;Foo::anotherThread, //this); 
  }

private:
  boost::thread m_thr;

  void anotherThread()
  {
    while (true)
    {
      ...
      Tuewas();
    }
  }
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/205191/boost-thread-auf-klassenfunktion</link><generator>RSS for Node</generator><lastBuildDate>Thu, 08 Oct 2026 21:18:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/205191.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Feb 2008 15:30:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Boost::Thread auf Klassenfunktion on Mon, 11 Feb 2008 15:30:54 GMT]]></title><description><![CDATA[<p>Hallo,<br />
wie kann ich mit boost::thread einen neuen Thread erstellen, wo die aufzurufende Funktion eine InstanzFunktion aus einer Klasse ist?</p>
<pre><code class="language-cpp">class Foo
{
public:
  void Start()
  {
    this-&gt;m_thr = boost::thread(&amp;Foo::anotherThread, //this); 
  }

private:
  boost::thread m_thr;

  void anotherThread()
  {
    while (true)
    {
      ...
      Tuewas();
    }
  }
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1453740</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1453740</guid><dc:creator><![CDATA[kleines_eichhoernchen]]></dc:creator><pubDate>Mon, 11 Feb 2008 15:30:54 GMT</pubDate></item><item><title><![CDATA[Reply to Boost::Thread auf Klassenfunktion on Mon, 11 Feb 2008 15:38:03 GMT]]></title><description><![CDATA[<p>boost::bind oder std::tr1::bind benutzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1453747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1453747</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Mon, 11 Feb 2008 15:38:03 GMT</pubDate></item><item><title><![CDATA[Reply to Boost::Thread auf Klassenfunktion on Mon, 11 Feb 2008 17:37:16 GMT]]></title><description><![CDATA[<p>und die Foren-Suchfunktion, das Thema hatten wir nämlich schon einige male, unter anderem letzte Woche.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1453851</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1453851</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Mon, 11 Feb 2008 17:37:16 GMT</pubDate></item></channel></rss>