Changeset 2494 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc
- Timestamp:
- Jan 6, 2004, 7:44:56 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pistdimgapp.cc
r2492 r2494 408 408 while (!_fgstop) { 409 409 usleep(2000); 410 _app->getMutex().broadcast(); 410 _app->LockMutex(); 411 bool fgb = false; 412 if (_app->CheckPendingEvents() != 0) fgb = true; 413 _app->UnlockMutex(fgb); 411 414 } 412 415 } … … 415 418 bool _fgstop; 416 419 }; 420 421 int PIStdImgApp::CheckPendingEvents() 422 { 423 return XtAppPending(*_appctx); 424 } 425 417 426 /* --Methode-- */ 418 427 void PIStdImgApp::Run() … … 421 430 int szx, szy, szf; 422 431 XtAppContext * appctx = PIXtAppCtx(szx, szy, szf); 432 _appctx = appctx; // Pour CheckPendingEvents() 423 433 // Pour appeler FinishCreate() des objets dans la fenetre principale 424 434 if (mStop) { // C'est la premiere fois
Note:
See TracChangeset
for help on using the changeset viewer.