Re: wakeup one thread...

From: Manfred Spraul (manfreds@colorfullife.com)
Date: Fri Mar 10 2000 - 13:29:22 EST


"Raj, Ashok" wrote:
>
> Hi.
>
> do we have a wakeup call that would just wakeup one thread from a waiter
> list?
>

Either you can use add_wait_queue_exclusive() and TASK_EXCLUSIVE [e.g.
arch/i386/kernel/semaphore.c], or you can use wake_up_process() and
embed a "struct task_struct" pointer into you own structures [e.g.
ipc/msg.c and ipc/sem.c]

--
	Manfred

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:18 EST