nanogui: Are Nano-X thread-safe?


Previous by date: 15 May 2007 17:48:53 +0100 Are Nano-X thread-safe?, Claudia De Bartolomeis
Next by date: 15 May 2007 17:48:53 +0100 de-bouncing the keypad input, Kayla Bonham
Previous in thread: 15 May 2007 17:48:53 +0100 Are Nano-X thread-safe?, Claudia De Bartolomeis
Next in thread:

Subject: Re: [nanogui] Are Nano-X thread-safe?
From: "Greg Haerr" ####@####.####
Date: 15 May 2007 17:48:53 +0100
Message-Id: <0a0e01c79710$d3e946e0$2f01a8c0@HaydenLake>

> I would like to know if Nano-X are thread-save(pthread),
in other words if i can, for example, have two thread drawing on the same 
window.

Yes.  You must set the threadsafe option on in the config file.

Due to the way the protocol works between nano-X client and
server, some API calls return data, which require flushing
the output queue and waiting for server data.  (These
would be all non-void typed APIs.  Most drawing calls
are not this way).  I recommend having only a single
thread main loop calls functions that require return values.
That is, getting window sizes etc should be done before
multiple threads are started, and then only use threads
to perform output-only drawing tasks.

Regards,

Greg 


Previous by date: 15 May 2007 17:48:53 +0100 Are Nano-X thread-safe?, Claudia De Bartolomeis
Next by date: 15 May 2007 17:48:53 +0100 de-bouncing the keypad input, Kayla Bonham
Previous in thread: 15 May 2007 17:48:53 +0100 Are Nano-X thread-safe?, Claudia De Bartolomeis
Next in thread:


Powered by ezmlm-browse 0.20.