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: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@2588 27541ba8-7e3a-0410-8455-c3a389f83636

krafczyk/root,nilqed/root,georgtroska/root,bbockelm/root,CristinaCristescu/root,gganis/root,nilqed/root,buuck/root,simonpf/root,abhinavmoudgil95/root,Duraznos/root,lgiommi/root,root-mirror/root,davidlt/root,dfunke/root,buuck/root,CristinaCristescu/root,smarinac/root,beniz/root,perovic/root,thomaskeck/root,pspe/root,vukasinmilosevic/root,nilqed/root,0x0all/ROOT,georgtroska/root,satyarth934/root,jrtomps/root,cxx-hep/root-cern,nilqed/root,Y--/root,mkret2/root,mattkretz/root,perovic/root,omazapa/root-old,esakellari/root,beniz/root,karies/root,sawenzel/root,simonpf/root,root-mirror/root,Y--/root,CristinaCristescu/root,buuck/root,omazapa/root-old,lgiommi/root,alexschlueter/cern-root,buuck/root,omazapa/root,simonpf/root,cxx-hep/root-cern,beniz/root,Dr15Jones/root,sawenzel/root,omazapa/root,esakellari/my_root_for_test,thomaskeck/root,krafczyk/root,davidlt/root,beniz/root,omazapa/root,karies/root,mhuwiler/rootauto,0x0all/ROOT,thomaskeck/root,simonpf/root,ffurano/root5,perovic/root,jrtomps/root,agarciamontoro/root,mhuwiler/rootauto,gbitzes/root,BerserkerTroll/root,strykejern/TTreeReader,esakellari/root,bbockelm/root,strykejern/TTreeReader,krafczyk/root,satyarth934/root,jrtomps/root,perovic/root,esakellari/root,nilqed/root,abhinavmoudgil95/root,mkret2/root,evgeny-boger/root,pspe/root,karies/root,smarinac/root,lgiommi/root,jrtomps/root,olifre/root,simonpf/root,karies/root,gganis/root,0x0all/ROOT,satyarth934/root,smarinac/root,Duraznos/root,root-mirror/root,CristinaCristescu/root,dfunke/root,root-mirror/root,thomaskeck/root,simonpf/root,veprbl/root,davidlt/root,esakellari/my_root_for_test,gganis/root,olifre/root,arch1tect0r/root,mkret2/root,omazapa/root-old,vukasinmilosevic/root,evgeny-boger/root,perovic/root,agarciamontoro/root,tc3t/qoot,Y--/root,zzxuanyuan/root-compressor-dummy,nilqed/root,evgeny-boger/root,perovic/root,jrtomps/root,davidlt/root,kirbyherm/root-r-tools,mkret2/root,karies/root,krafczyk/root,tc3t/qoot,veprbl/root,Dr15Jones/root,agarciamontoro/root,olifre/root,mhuwiler/rootauto,krafczyk/root,Y--/root,vukasinmilosevic/root,gbitzes/root,zzxuanyuan/root,BerserkerTroll/root,ffurano/root5,satyarth934/root,zzxuanyuan/root,nilqed/root,Dr15Jones/root,sirinath/root,bbockelm/root,arch1tect0r/root,root-mirror/root,Dr15Jones/root,evgeny-boger/root,bbockelm/root,davidlt/root,zzxuanyuan/root-compressor-dummy,buuck/root,dfunke/root,pspe/root,CristinaCristescu/root,root-mirror/root,BerserkerTroll/root,zzxuanyuan/root-compressor-dummy,esakellari/my_root_for_test,ffurano/root5,vukasinmilosevic/root,alexschlueter/cern-root,davidlt/root,CristinaCristescu/root,tc3t/qoot,gbitzes/root,Dr15Jones/root,arch1tect0r/root,beniz/root,veprbl/root,strykejern/TTreeReader,ffurano/root5,root-mirror/root,Dr15Jones/root,gganis/root,CristinaCristescu/root,lgiommi/root,Duraznos/root,abhinavmoudgil95/root,omazapa/root-old,BerserkerTroll/root,zzxuanyuan/root-compressor-dummy,karies/root,mattkretz/root,veprbl/root,omazapa/root-old,buuck/root,abhinavmoudgil95/root,thomaskeck/root,Duraznos/root,lgiommi/root,bbockelm/root,zzxuanyuan/root-compressor-dummy,BerserkerTroll/root,georgtroska/root,Duraznos/root,olifre/root,thomaskeck/root,satyarth934/root,Y--/root,esakellari/my_root_for_test,esakellari/root,zzxuanyuan/root,georgtroska/root,BerserkerTroll/root,pspe/root,nilqed/root,mattkretz/root,ffurano/root5,pspe/root,tc3t/qoot,mhuwiler/rootauto,evgeny-boger/root,pspe/root,ffurano/root5,olifre/root,mhuwiler/rootauto,alexschlueter/cern-root,kirbyherm/root-r-tools,kirbyherm/root-r-tools,olifre/root,olifre/root,abhinavmoudgil95/root,mattkretz/root,kirbyherm/root-r-tools,jrtomps/root,sawenzel/root,krafczyk/root,sirinath/root,lgiommi/root,gganis/root,krafczyk/root,sbinet/cxx-root,arch1tect0r/root,smarinac/root,arch1tect0r/root,dfunke/root,bbockelm/root,davidlt/root,olifre/root,georgtroska/root,agarciamontoro/root,satyarth934/root,omazapa/root,thomaskeck/root,mkret2/root,smarinac/root,vukasinmilosevic/root,tc3t/qoot,sirinath/root,omazapa/root,sawenzel/root,Duraznos/root,evgeny-boger/root,beniz/root,nilqed/root,davidlt/root,mattkretz/root,davidlt/root,simonpf/root,sbinet/cxx-root,nilqed/root,krafczyk/root,zzxuanyuan/root,cxx-hep/root-cern,buuck/root,cxx-hep/root-cern,cxx-hep/root-cern,esakellari/root,zzxuanyuan/root,lgiommi/root,georgtroska/root,sawenzel/root,gbitzes/root,mattkretz/root,veprbl/root,mkret2/root,evgeny-boger/root,dfunke/root,arch1tect0r/root,lgiommi/root,sirinath/root,mattkretz/root,esakellari/my_root_for_test,gganis/root,abhinavmoudgil95/root,buuck/root,vukasinmilosevic/root,karies/root,tc3t/qoot,cxx-hep/root-cern,davidlt/root,esakellari/my_root_for_test,gganis/root,thomaskeck/root,root-mirror/root,tc3t/qoot,mhuwiler/rootauto,arch1tect0r/root,georgtroska/root,beniz/root,mkret2/root,Duraznos/root,zzxuanyuan/root-compressor-dummy,beniz/root,karies/root,esakellari/root,zzxuanyuan/root,mattkretz/root,veprbl/root,gbitzes/root,agarciamontoro/root,vukasinmilosevic/root,omazapa/root-old,CristinaCristescu/root,Y--/root,sbinet/cxx-root,agarciamontoro/root,omazapa/root-old,esakellari/root,krafczyk/root,gganis/root,beniz/root,zzxuanyuan/root,mhuwiler/rootauto,bbockelm/root,arch1tect0r/root,Y--/root,ffurano/root5,cxx-hep/root-cern,satyarth934/root,omazapa/root-old,sbinet/cxx-root,jrtomps/root,omazapa/root,veprbl/root,dfunke/root,CristinaCristescu/root,dfunke/root,zzxuanyuan/root,zzxuanyuan/root,simonpf/root,agarciamontoro/root,pspe/root,sbinet/cxx-root,pspe/root,mkret2/root,evgeny-boger/root,root-mirror/root,omazapa/root-old,perovic/root,gbitzes/root,BerserkerTroll/root,evgeny-boger/root,sawenzel/root,thomaskeck/root,sbinet/cxx-root,georgtroska/root,karies/root,cxx-hep/root-cern,Y--/root,agarciamontoro/root,zzxuanyuan/root-compressor-dummy,vukasinmilosevic/root,mhuwiler/rootauto,abhinavmoudgil95/root,karies/root,olifre/root,gganis/root,sbinet/cxx-root,veprbl/root,tc3t/qoot,0x0all/ROOT,sirinath/root,kirbyherm/root-r-tools,strykejern/TTreeReader,jrtomps/root,tc3t/qoot,zzxuanyuan/root-compressor-dummy,pspe/root,evgeny-boger/root,arch1tect0r/root,mkret2/root,sbinet/cxx-root,gbitzes/root,mhuwiler/rootauto,mattkretz/root,lgiommi/root,sirinath/root,buuck/root,mattkretz/root,gbitzes/root,gbitzes/root,esakellari/root,dfunke/root,mkret2/root,zzxuanyuan/root-compressor-dummy,esakellari/my_root_for_test,vukasinmilosevic/root,sbinet/cxx-root,agarciamontoro/root,tc3t/qoot,georgtroska/root,sbinet/cxx-root,dfunke/root,kirbyherm/root-r-tools,CristinaCristescu/root,Duraznos/root,vukasinmilosevic/root,Duraznos/root,Y--/root,gbitzes/root,esakellari/root,olifre/root,veprbl/root,omazapa/root,satyarth934/root,mattkretz/root,omazapa/root,agarciamontoro/root,beniz/root,zzxuanyuan/root,gganis/root,simonpf/root,smarinac/root,smarinac/root,root-mirror/root,mkret2/root,dfunke/root,root-mirror/root,buuck/root,lgiommi/root,abhinavmoudgil95/root,BerserkerTroll/root,strykejern/TTreeReader,BerserkerTroll/root,arch1tect0r/root,zzxuanyuan/root,Y--/root,CristinaCristescu/root,sirinath/root,perovic/root,bbockelm/root,0x0all/ROOT,alexschlueter/cern-root,bbockelm/root,jrtomps/root,esakellari/my_root_for_test,strykejern/TTreeReader,gganis/root,smarinac/root,sbinet/cxx-root,dfunke/root,nilqed/root,sawenzel/root,esakellari/my_root_for_test,karies/root,0x0all/ROOT,perovic/root,0x0all/ROOT,mhuwiler/rootauto,perovic/root,bbockelm/root,omazapa/root,zzxuanyuan/root,esakellari/root,Y--/root,lgiommi/root,abhinavmoudgil95/root,zzxuanyuan/root-compressor-dummy,jrtomps/root,sawenzel/root,Dr15Jones/root,evgeny-boger/root,strykejern/TTreeReader,esakellari/my_root_for_test,abhinavmoudgil95/root,sawenzel/root,mhuwiler/rootauto,jrtomps/root,sirinath/root,omazapa/root-old,beniz/root,sawenzel/root,perovic/root,Duraznos/root,bbockelm/root,smarinac/root,sawenzel/root,alexschlueter/cern-root,abhinavmoudgil95/root,buuck/root,satyarth934/root,sirinath/root,pspe/root,BerserkerTroll/root,omazapa/root-old,vukasinmilosevic/root,olifre/root,Duraznos/root,omazapa/root,sirinath/root,alexschlueter/cern-root,satyarth934/root,gbitzes/root,veprbl/root,esakellari/root,pspe/root,0x0all/ROOT,BerserkerTroll/root,thomaskeck/root,alexschlueter/cern-root,omazapa/root,smarinac/root,agarciamontoro/root,simonpf/root,krafczyk/root,sirinath/root,georgtroska/root,veprbl/root,simonpf/root,0x0all/ROOT,georgtroska/root,satyarth934/root,kirbyherm/root-r-tools,krafczyk/root,arch1tect0r/root,davidlt/root,zzxuanyuan/root-compressor-dummy