nanogui: is multithread program supported by flnx of nano-X?
Subject:
Re: is multithread program supported by flnx of nano-X?
From:
Jordan Crouse ####@####.####
Date:
30 Apr 2001 14:42:11 -0000
Message-Id: <01043008423002.00902@cosmic>
But don't take that to mean that you can't have multithreaded programs with
Microwindows. What you need is one thread that handles all of the drawing,
and a second thread that handles all of the other operations (but absolutely
*no* FLNX or Microwindows calls). You will need to set up semaphores and
message queues, but then you will have no problems at all. For a great
example of how this works, see ViewML. It has a main thread that draws the
UI, and a secondary thread that handles the network communications.
Jordan
On Saturday 28 April 2001 09:32, Gary James mentioned:
> Microwindows does not support multi-threading.
>
> On Fri, 27 Apr 2001 22:24:54 lx wrote:
> > Hi,
> > I am porting a multithread program to flnx on microwindow,
> > each thread manage a window.there was some problem.
> > first it call GrOpen() twice,I fixed it by set fl_display in
> > flnx.(is it right??)
> > second it confused at event dispatch,and event has no response.
> > any solution??
> > any suggestion??
> > thanks in advance!
> > luoxin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####