From: "Norman Black" <stonybrk@fubar.com>
Subject: Re: awaking a thread ... waiting on select or poll
Date: Fri, 13 Apr 2001 12:41:30 -0700 [thread overview]
Message-ID: <9b7kpc$ae2$1@slb6.atl.mindspring.net> (raw)
In-Reply-To: qIsB6.3628$zv6.2622115@typhoon2.ba-dsg.net
You could create a pipe that you use only for manually waking a thread and
have that in select/poll.
Contrary to another message posed here, the Linux threads implementation
does not use SIGUSR1, at least not 2.x versions. The LinuxThreads
implementation uses realtime signals these days. I do not know when the
transition occurred.
--
Norman Black
Stony Brook Software
the reply, fubar => ix.netcom
"MrSignor" <MrSignor@nospam_bellatlantic.net> wrote in message
news:qIsB6.3628$zv6.2622115@typhoon2.ba-dsg.net...
> Is there a reliable way (across Unix platforms) to wake-up a thread
> sleeping/waiting on a Select or Poll, that is not timing out the request.
>
> Basically, I have a thread, waiting for work on 1-n sockets. Upon
> occassion, I would like to wake the sleeping-thread, because I
> need to bring something to it's attention.
>
> TIA
>
> -Fred
>
>
prev parent reply other threads:[~2001-04-13 19:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-13 1:34 awaking a thread ... waiting on select or poll MrSignor
2001-04-13 3:21 ` Richard D. Latham
2001-04-13 10:45 ` Dave Butenhof
2001-04-13 16:25 ` Logan Shaw
2001-05-29 17:29 ` anaonymous
2001-04-13 19:41 ` Norman Black [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox