By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,501 Members | 1,720 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,501 IT Pros & Developers. It's quick & easy.

threads within c++ class

P: n/a
Hello,

I have written a class and want to start a thread in it. The method
called by the thread is a also class member.

I tried it with pthread.h but it did not work properly. Within the
method called by the thread there is a loop, but it is only called once.
Then the program quits without any error message.

Is there a good thread library for C++ which i could use?

Thanks a lot,
kaoz
Nov 22 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I just googled and came across this site. This is not a standard C++
library but would help with code samples.

http://threads.sourceforge.net/

Regards
Ankur

Nov 22 '05 #2

P: n/a
http:://www.boost.org
boost is platform independent and pure object oriented thread library
to use. and yes that will solve your problem of passing a class member
function as thread

Nov 22 '05 #3

P: n/a
http:://www.boost.org
boost is platform independent and pure object oriented thread library
to use. and yes that will solve your problem of passing a class member
function as thread

Nov 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.