Proposed by Mathieu de Naurois: a new option kMETH in TThread::Xaction. 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*)"";
Proposed by Mathieu de Naurois: a new option kMETH in TThread::Xaction.
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: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@2588 27541ba8-7e3a-0410-8455-c3a389f83636

dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root