Re: How can I get notified that a kernel thread has been terminated ?
Re: How can I get notified that a kernel thread has been terminated ?
- Subject: Re: How can I get notified that a kernel thread has been terminated ?
- From: Nicolas Connoud <email@hidden>
- Date: Fri, 19 Aug 2011 10:33:51 +0200
All,
I have tried to use a mutex (which is what an IOLock is as far as I can see) and no luck. It sometimes works, sometimes it doesn't... It doesn't look like it is the good way to detect a thread termination.
I must agree with Gary, there should be some conventional way to detect this...
Thanks again to anybody who's got an(other) idea on that.
N.
2011/8/5 Nicolas Connoud
<email@hidden>
Hi Ken,
Hi Roman,
Thanks for your answers.
I reviewed my worker thread exit synchronisation code and I managed to get it to work.
My next question would have been : what is the best object to use to manage that synchronisation ? But Roman has already answered it ! :)
I am currently using a semaphore but I did like the idea to use a semaphore for that purpose. An IOLock sounds the right thing to be using : I will give it a go !
Thanks again!
N.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden