lkml.org 
[lkml]   [2003]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] [2/2] posix message queues
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 `---------------------------

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

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.048 / U:1.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site