Changeset 2494 in Sophya for trunk/SophyaPI/PIext/basexecut.cc
- Timestamp:
- Jan 6, 2004, 7:44:56 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r2465 r2494 66 66 nx = ny = 1; 67 67 nx = atoi(tokens[0].c_str()); ny = atoi(tokens[1].c_str()); 68 if (mImgApp) mImgApp->SetZone(nx, ny); 69 } 68 if (mImgApp) { 69 mImgApp->LockMutex(); // <ZThread> global event loop synchronisation 70 mImgApp->SetZone(nx, ny); 71 mImgApp->UnlockMutex(true); // <ZThread> global event loop synchronisation 72 } 73 } 70 74 else if (kw == "newwin") { 71 75 int nx=1, ny=1; … … 78 82 sy = atoi(tokens[3].c_str()); 79 83 } 80 if (mImgApp) mImgApp->CreateGraphWin(nx, ny, sx, sy); 84 if (mImgApp) { 85 mImgApp->LockMutex(); // <ZThread> global event loop synchronisation 86 mImgApp->CreateGraphWin(nx, ny, sx, sy); 87 mImgApp->UnlockMutex(true); // <ZThread> global event loop synchronisation 88 } 81 89 } 82 else if (kw == "stacknext") mImgApp->StackWinNext(); 90 else if (kw == "stacknext") { 91 mImgApp->LockMutex(); // <ZThread> global event loop synchronisation 92 mImgApp->StackWinNext(); 93 mImgApp->UnlockMutex(true); // <ZThread> global event loop synchronisation 94 } 83 95 else if (kw == "graphicatt") { 84 96 if (tokens.size() < 1) { cout << "Usage: graphicatt attributes_list (att=def->defaut)" << endl; return(0); } … … 296 308 // utilise donc des DlFunction (Reza 20/08/98) voir commentaire ds .h (pb g++) 297 309 DlUserProcFunction fuf = (DlUserProcFunction)(*it).second; 310 /*DEL----- Plus besoin en multi-thread ? / Reza 06/01/2004 298 311 // On redirige la sortie sur le terminal 299 312 bool red = mImgApp->HasRedirectedStdOutErr(); 300 313 mImgApp->RedirectStdOutErr(false); 314 --------DEL */ 301 315 #ifdef SANS_EVOLPLANCK 302 316 TRY { … … 326 340 } 327 341 #endif 342 /*DEL----- Plus besoin en multi-thread ? / Reza 06/01/2004 328 343 mImgApp->RedirectStdOutErr(red); 344 --------DEL */ 329 345 } 330 346
Note:
See TracChangeset
for help on using the changeset viewer.