This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]