skaller wrote:
> On Thu, 2006-11-09 at 22:21 +1100, Jonathan Kelly wrote:
>   
>> skaller wrote:
>>     
>>> On Thu, 2006-11-09 at 07:41 +1100, Jonathan Kelly wrote:
>>>
>>>   
>>>       
>>>> I'm trying to wrap ncurses and want to deal with SIGWINCH, and I'd want 
>>>> to handle SIGINT too of course, to tidy up.
>>>>     
>>>>         
>>> I guess I'd do the signal handling in plain C, and set global
>>> variables, then get a Felix pthread to loop around,
>>> checking every 1/10 second, and sleeping in between.
>>>
>>> Not very nice but it should work.
>>>
>>>
>>>   
>>>       
>> Yuk! Thinking ... couldn't  a C procedure call a felix 
>> function/procedure somehow? Or does that break something
>>
>>     
>
> Yes, but what would that achieve? Such a procedure
> cannot interact with shared data. Inside a signal you
> cannot use a mutex for fear of deadlock.
>
>   

well, I'm not really up on all the signal semantics and/or implications 
... I guess the idea is to do as little as possible in the handler then 
... the signal handler sets something so the system can find out that 
something has changed and act appropriately ... but it means coding all 
the routines to check for a change instead of dealing with it when it 
happens, if dealing with it in the handler is a no-go... I wasn't really 
thinking that far ahead ... I just wanted to be able to catch the signal 
so I could experiment, and learn ...

Jonathan.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to