[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.
- Hurd_condition_wait, Vicente Hernando Ara, 2002/11/16
- Re: Hurd_condition_wait, Neal H. Walfield, 2002/11/16
- Re: Hurd_condition_wait, Vicente Hernando Ara, 2002/11/17
- Re: Hurd_condition_wait,
Neal H. Walfield <=
- Re: Hurd_condition_wait, Vicente Hernando Ara, 2002/11/17
- Re: Hurd_condition_wait, Neal H. Walfield, 2002/11/17
- Re: Hurd_condition_wait, Marcus Brinkmann, 2002/11/17
- Re: Hurd_condition_wait, Neal H. Walfield, 2002/11/17
- Re: Hurd_condition_wait, Neal H. Walfield, 2002/11/17
- Re: Hurd_condition_wait, Neal H. Walfield, 2002/11/17
- Re: Hurd_condition_wait, Thomas Bushnell, BSG, 2002/11/19