PDA

View Full Version : Suspend/Resume for MP Threads


RenHoek
2004.08.08, 05:20 PM
Hi Guys

I'm currently working with MP threads under Carbon.
( the Mac premptive threading api )

But one thing seems very strange to me.
I can't find a way to suspend/resume an MP thread
from another thread.
It seems like it should be very basic threading functionality
but I just can't find any way to do it!? :(

Am I just blind and can't find the functions?
Or is there a more deeper reason for this functionality
not being in the API?

Thanks heaps guys
Brian Sharpe

Wired
2004.08.09, 07:11 AM
I don't think you can with the MP Services. You can always switch to pthreads on OS X. Then you can suspend and resume them, IIRC.