From: Brandon S. A. K. <al...@ec...> - 2009-06-24 18:27:04
|
On Jun 24, 2009, at 06:57 , Tim Docker wrote: > On 24/06/2009, at 4:51 PM, Brandon S. Allbery KF8NH wrote: >> gtk+ doesn't support multithread, so gtk2hs doesn't either. You >> can use postGUIAsync to pass a gtk action to the main thread to be >> run by the event loop. > > Yes. The need to restrict GUI calls to a single thread is pretty > common across GUI toolkits, at least in my experience. Is there a > (popular) GUI library that doesn't have that restriction? XLib is not really multithreading-capable. (It can be built multithread-aware, but that doesn't help much.) xcb supposedly fixes this, but I don't know of any popular GUI libraries that have been rewritten to take advantage of it. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] al...@kf... system administrator [openafs,heimdal,too many hats] al...@ec... electrical and computer engineering, carnegie mellon university KF8NH |