Re: linux sleep implementation
- From: Marco Gerber <marcogerber@xxxxxxxxxx>
- Date: Sat, 16 Sep 2006 00:21:07 +0000
Iwo Mergler wrote:
I vaguely remember the above code to be a workaround to avoid a race
condition when using a 2.4.x kernel. Newer kernels have a call which
allows you to go to sleep and check your condition atomically.
Well, from linux/wait.h :
void wait_event(wait_queue_head_t waitqueue, condition);
and
int wait_event_interruptible (wait_queue_head_t wait_queue, condition);
that's the state of the art...
hth
Marco
.
- References:
- linux sleep implementation
- From: Ask
- Re: linux sleep implementation
- From: Iwo Mergler
- linux sleep implementation
- Prev by Date: Exportfs / kernel NFS server dentry question (2.6.9 kernel)
- Next by Date: Re: XCreateWindow position fail
- Previous by thread: Re: linux sleep implementation
- Next by thread: Re: linux sleep implementation
- Index(es):
Relevant Pages
|