This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Wake select() with a signal
- From: Roland Caßebohm <roland dot cassebohm at visionsystems dot de>
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 1 Nov 2002 18:04:31 +0100
- Subject: [ECOS] Wake select() with a signal
Hi everyone,
I want to wake a waiting select by sending a signal to the thread.
This does not always work. I think the reason is that the thread in which
select() is call is not really sleeping all the time, even though it doesn't
return. The pthread_kill() function respectively Cyg_Thread::release() only
wakes a thread if the thread is sleeping. That makes sense, but what can I do
if I want a waiting select() to return triggered from another thread?
Thanks,
Roland
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss