> IIRC we decided the libraries should stay way from signals so as not to get
> mixed up with anything the app does.  You can get the same effect by
> launching a thread and doing a blocking poll.  

I see. Good answer. Thank You.

Maybe people would like to have something like event handler registration.

 giiHandleEvent(eventtypemask, void(*handler()));

When an giiEvent occurs and is in the eventtypemask, the handler gets called.
I guess this would be just a convenience, but perhaps a nice convenience.  No need to 
understand pthreads(if you have  a simple application without shared data).
Just an idea.



Lee
-- 
Get your free email from www.linuxmail.org 


Powered by Outblaze

Reply via email to