[LC++]Question on pthreads

Krishna Monian k_tutorials at yahoo.com
Thu Jul 15 05:12:01 UTC 2004


Hi, 
I have a pthread that is spawned from my main function
and then the main function just waits until the user
hits enter. Now I want the program to terminate if a
something unexpected in the thread spawned. How
exactly do I go about doing this?

Even better would be if the thread could return a
value to the main function. Is this possible?

Thanks
Krishna


		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 



More information about the tuxCPProgramming mailing list