RE: clear_wait() using thread address
RE: clear_wait() using thread address
- Subject: RE: clear_wait() using thread address
- From: "Vishal Shetye" <email@hidden>
- Date: Tue, 11 Dec 2007 10:57:13 +0530
Hi
> How are you assuring that the thread wasn't already awoken and already
> terminated itself (in case of a process termination, system shutdown,
> etc...)
I didn't find any function for getting thread state (like sleeping).
For now I just do a proc_find() and assume true return value = thread
sleeping (bad assumption). Please suggest alternative???
> More importantly, are you really intending to wake the thread from any
> wait it might be performing - even ones unrelated to the condition
> that (you think) the thread might be waiting on? It is always better
> to post the specific condition than to try and determine and then
> blast a particular thread.
I dropped wait_queue/clear_wait(). Now I use msleep()/thread_wakeup_prim()
so that I wake up thread sleeping on particular condition.
Thanks
vishal
_______________________________________________
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