Re: [Iup-users] Is Iup pthread safe?

2015-10-07 Thread Andy Xiyue
mean time. The IUP timer doesn't use sigalarm. That's very good for my project :-) Kind regards Andy > Message: 1 > Date: Wed, 7 Oct 2015 09:03:20 -0300 > From: Antonio Scuri > Subject: Re: [Iup-users] Is Iup pthread safe? > To: "IUP discussion list." &g

Re: [Iup-users] Is Iup pthread safe?

2015-10-07 Thread Andy Xiyue
Oct 2015 13:15:43 + > From: Ranier VF > Subject: Re: [Iup-users] Is Iup pthread safe? > To: IUP discussion list. > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > Hi,I think this not a perfect solution, but can work, or not?You can not >

Re: [Iup-users] Is Iup pthread safe?

2015-10-07 Thread Milind Gupta
digest..." >> >> >> Today's Topics: >> >>1. Re: Is Iup pthread safe? (John Spikowski) >>2. Re: Is Iup pthread safe? (Ranier VF) >>3. Re: Is Iup pthread safe? (Andy Xiyue) >>4. Re: Is Iup pthread safe? (Milind Gupta) >>

Re: [Iup-users] Is Iup pthread safe?

2015-10-07 Thread Ranier VF
msg_send(thread_gui, MSG_UPDATE_MAIN_TITLE, "New Title");} Best, Ranier Vilela Date: Wed, 7 Oct 2015 09:03:20 -0300 From: sc...@tecgraf.puc-rio.br To: iup-users@lists.sourceforge.net Subject: Re: [Iup-users] Is Iup pthread safe? You can set the IDLE function using IupSetFunction("IDLE_ACTION

Re: [Iup-users] Is Iup pthread safe?

2015-10-07 Thread Antonio Scuri
t control, the app will received sig 11: >> > >> > iqiup: Fatal IO error 11 (Resource temporarily unavailable) on X >> > server :0.0. >> > >> > >> > It looks like I misunderstood the programming model of IUP. Is IUP >> > safe to update the attribution of controls in different thread

Re: [Iup-users] Is Iup pthread safe?

2015-10-07 Thread Andy Xiyue
iyue) >4. Re: Is Iup pthread safe? (Milind Gupta) >5. Re: Is Iup pthread safe? (John Spikowski) >6. Re: Is Iup pthread safe? (Ranier VF) > > > ---------------------- > > Message: 1 > Date: Thu, 01 Oct 2015 23:39

Re: [Iup-users] Is Iup pthread safe?

2015-10-06 Thread Antonio Scuri
7;s actually I problem I have as well. My work around is to use > IupFlush instead of the main loop. But that's a bit against Antonios > suggestions. > > Best > /Jörg > > > > Best,Ranier Vilela > > > >> From: supp...@scriptbasic.org > >> To:

Re: [Iup-users] Is Iup pthread safe?

2015-10-06 Thread Jörg F. Wittenberger
; To: iup-users@lists.sourceforge.net >> Date: Mon, 5 Oct 2015 22:17:15 -0700 >> Subject: Re: [Iup-users] Is Iup pthread safe? >> >> Andy, >> >> I feel if you follow what I have done in Script BASIC for threaded IUP >> it should work for you without any chan

Re: [Iup-users] Is Iup pthread safe?

2015-10-06 Thread Ranier VF
:15 -0700 > Subject: Re: [Iup-users] Is Iup pthread safe? > > Andy, > > I feel if you follow what I have done in Script BASIC for threaded IUP > it should work for you without any changes to anything. > > John > > On Tue, 2015-10-06 at 15:54 +1100, Andy Xiyue wrote: >

Re: [Iup-users] Is Iup pthread safe?

2015-10-05 Thread John Spikowski
Andy, I feel if you follow what I have done in Script BASIC for threaded IUP it should work for you without any changes to anything. John On Tue, 2015-10-06 at 15:54 +1100, Andy Xiyue wrote: > Thanks John and Ranier. > > > At least I'm confirmed now I can not update the attributions of IUP > c

Re: [Iup-users] Is Iup pthread safe?

2015-10-05 Thread Milind Gupta
What I did was to have a timer run and listen to communication from another thread. I used sockets to send and receive data. Milind On Mon, Oct 5, 2015 at 9:54 PM, Andy Xiyue wrote: > Thanks John and Ranier. > > At least I'm confirmed now I can not update the attributions of IUP > controls in

Re: [Iup-users] Is Iup pthread safe?

2015-10-05 Thread Andy Xiyue
Thanks John and Ranier. At least I'm confirmed now I can not update the attributions of IUP controls in other threads so my previous programming module was definitely wrong. So the question becomes how to send the control update event to the main thread? It's quite obvious the main thread is stu

Re: [Iup-users] Is Iup pthread safe?

2015-10-02 Thread Ranier VF
ge.net > Date: Thu, 1 Oct 2015 23:39:24 -0700 > Subject: Re: [Iup-users] Is Iup pthread safe? > > Hi Andy, > > IUP isn't thread safe by default but that doesn't mean it can't be done. > Here is an example in Script BASIC (Windows & Linux) > > http://

Re: [Iup-users] Is Iup pthread safe?

2015-10-01 Thread John Spikowski
Hi Andy, IUP isn't thread safe by default but that doesn't mean it can't be done. Here is an example in Script BASIC (Windows & Linux) http://www.scriptbasic.org/forum/index.php/topic,335.0.html John On Fri, 2015-10-02 at 14:36 +1000, Andy Xiyue wrote: > Hi Scuri, > > > Recently I tried to u

[Iup-users] Is Iup pthread safe?

2015-10-01 Thread Andy Xiyue
Hi Scuri, Recently I tried to use IUP with more than one thread. My plan is simple, run IupMainLoop() in one thread and feed progress bar or text control in another thread. Theoretically I don't need to synchronize the IUP calls because the IupMainLoop() will process the events sooner or later. Ho