[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pthreads
From: |
Neal H. Walfield |
Subject: |
Re: pthreads |
Date: |
27 Jul 2002 19:45:51 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 |
> The critical piece of the thread implementation (any one) is cancellation.
> This will work differently in pthreads then it works right now in
> cthreads.
Well sure it will work differently, but it is essentially, a
substitution. Right now we use, for instance, hurd_condition_wait:
if (hurd_condition_wait (&cond, &mutex))
{
mutex_unlock (&mutex);
return EINTR;
}
in pthreads we will do:
pthread_cleanup_push (pthread_mutex_unlock, (void *) &mutex);
pthread_condition_wait (&cond, &mutex);
pthread_cleanup_pop (1);
Or are you trying to say something else that I am just missing?
Thanks.
Re: pthreads, Neal H. Walfield, 2002/07/31