Changeset 10980 for fact/FADctrl/FADBoard.cc
- Timestamp:
- 06/10/11 13:17:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/FADctrl/FADBoard.cc
r10969 r10980 470 470 while (!Continue) { 471 471 struct timespec Wakeup; 472 Wakeup.tv_sec = time(NULL)+ 5;472 Wakeup.tv_sec = time(NULL)+MAX_WAIT_FOR_CONDITION; 473 473 Wakeup.tv_nsec = 0; 474 474 if ((Ret = pthread_cond_timedwait(&CondVar, &Mutex, &Wakeup)) != 0) { 475 if (Ret == ETIMEDOUT) printf("Board %s timed out (5 s) waiting for condition\n", Name);475 if (Ret == ETIMEDOUT) SetStatus("Board %s timed out (%d s) waiting for condition\n", Name, MAX_WAIT_FOR_CONDITION); 476 476 else m->Message(m->ERROR, "pthread_cond_wait() failed (%s)", strerror(Ret)); 477 477 }
Note:
See TracChangeset
for help on using the changeset viewer.