Re: [PATCH] [2/2] posix message queues

Ulrich Drepper
2003-10-04T06:39:56Z

Peter Wächtler wrote:

> + if (q->notify.sigev_notify == SIGEV_THREAD) {
> +
> + err = -ENOSYS;
> + pr_info("mq_*send: SIGEV_THREAD not supported\n");
> + }

In all the SIGEV_THREAD cases I suggest that you expect to be passed a
futex address. Upon completion you increment the value and call
sys_futex with FUTEX_WAKE.

This gives plenty of freedom at userlevel to implement the actual work.

--
--------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------