[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Thread safe understanding
From: tj ####@####.#### Date: 23 Jul 2004 00:36:18 +0100 Message-Id: <41004F56.1070501@comcast.net> Let me make sure I understand the threadsafe otion. If it is set that means that all threads within an app can update screens without the further need of mutexes. Correct? I need to have one window in a app that displays data from a thread. While all other windows are updated by the "main" thread. tj | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] Thread safe understanding
From: "Greg Haerr" ####@####.#### Date: 23 Jul 2004 02:07:35 +0100 Message-Id: <010001c47051$62f98c80$3aba46a6@xmission.com> : Let me make sure I understand the threadsafe otion. : If it is set that means that all threads within an app can update : screens without the further need of mutexes. Correct? All it means is that each of the GrXXX nano-X API entry points are protected with a mutex, so multiple threads don't try to execute them at the same time. There can still be problems if two threads ever try to call GrGetNextEvent, or do much besides just calling draw functions to the server. : : I need to have one window in a app that displays data from a thread. : While all other windows are updated by the "main" thread. That's probably allright, but refrain from GrGetXXX functions, that require waiting for the server to return data, there can be sync problems. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |