lkml.org 
[lkml]   [1999]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: POSIX aio vs completion ports
On Sun, 12 Sep 1999, Jamie Lokier wrote:
> Chuck Lever wrote:
> > there's no good way for the application (or library) to allocate a
> > specific RT signal, so there must be some form of "gentlemen's
> > agreement" between libraries and application as to which uses which
> > signal.
>
> My strategy: search for the first rt signal that's not got SIG_DFL as
> its handler.
>
> Imperfect I know but probably better than random() :)

you have to select a signal number and set up the signal handler in a
single system call. otherwise, you're racing with other threads that
could be doing this at the same time, right?

- Chuck Lever
--
corporate: <chuckl@netscape.com>
personal: <chucklever@netscape.net> or <cel@monkey.org>

The Linux Scalability project:
http://www.citi.umich.edu/projects/linux-scalability/


-
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/

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