Re: fl_do_forms() and signals

Mats Bergstrom (mb@talws10.nbi.dk)
Mon, 17 Mar 1997 23:37:36 GMT

To subscribers of the xforms list from mb@talws10.nbi.dk (Mats Bergstrom) :

> I have problem with libforms (what else ;-):
>
> In my multithreaded program, I'm using one thread for all libforms-calls.
> This thread is most of the time in fl_do_forms(), but if another thread
> has to do some output, I'm sending a SIGUSR1 to the first thread. This
> one then starts fl_addto_browser() or fl_set_button() - but sometimes
> the thread stops in fl_addto_browser()/fl_set_button().
>
> Perhaps I should not interrupt fl_do_forms()?
>
> Is there a better way?
I had a similar problem. What I did was to have the threads that
needed to interrupt the forms handling thread write a small message to
a pipe and add an io callback for that pipe. No signals at all.
Works nicely.

>
> I'm using Solaris 2.4/Sparc and libforms claims to be
> "Beta 0.81 of 1996/06/21".
>
> Regards,
> Martin.
>
> (p.s.: great library!)
Yepp.
/Mats
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/