[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Are Nano-X thread-safe?
From: "Claudia De Bartolomeis" ####@####.#### Date: 15 May 2007 08:20:58 +0100 Message-Id: <002101c796c1$84dfc320$0f00a8c0@CLAUDIA> Hi everybody, I'm developing an application under uClinux using Nano-X. 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. Thanks Claudia | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |