Rene Brun
authored
A function may be executed by the main Thread via a TMethodCall. Example of use: void DaqRead::CanvasManager::Update() { // We made the update occur in the Main Thread // to avoid dead lock with mouse/pad action // which can lock the DaqRead::CanvasManager::mutex if (gThreadXAR) { TMethodCall c(IsA(),"Update",""); void *arr[4]; arr[1] = &c; arr[2] = (void *)this; arr[3] = (void*)""; if ((*gThreadXAR)("METH", 4, arr, NULL)) return; } mutex.Lock(); Emit("Update()"); mutex.UnLock(); } git-svn-id: http://root.cern.ch/svn/root/trunk@2588 27541ba8-7e3a-0410-8455-c3a389f83636
Name | Last commit | Last update |
---|---|---|
.. |