bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hurd_condition_wait


From: Neal H. Walfield
Subject: Re: Hurd_condition_wait
Date: 17 Nov 2002 10:30:31 -0500
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2

> Is there a replacement for CPROC_SWITCHING and CPROC_RUNNING in
> cproc_t->state, to know if a thread has been waken up?

No.  We do not need it.

> __pthread.state has the following states...
>  
>  /* Thread state.  */
> enum pthread_state
> {
>   PTHREAD_JOINABLE = 0,
>   PTHREAD_DETACHED,
>   PTHREAD_EXITED,
>   PTHREAD_TERMINATED
> };
> 
> Can a thread be waken up if it hasnt been blocked?

pthread_state has nothing to do with that.  Threads are put to sleep
via __pthread_block and awoken with __pthread_wakeup.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]