Changeset 313 in flair-src for trunk/lib/FlairCore/src
- Timestamp:
- Mar 21, 2019, 11:30:17 AM (6 years ago)
- Location:
- trunk/lib/FlairCore/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/FrameworkManager_impl.cpp
r290 r313 152 152 SafeStop(); 153 153 Join(); 154 155 if(gcs_watchdog!=NULL) gcs_watchdog->SafeStop(); 154 156 155 157 if (rcv_buf != NULL) -
trunk/lib/FlairCore/src/Thread.cpp
r307 r313 127 127 //usleep(time); 128 128 struct timespec req; 129 req.tv_sec = (Time)time / (Time)1000 ;130 req.tv_nsec = ( Time)time%(Time)1000;129 req.tv_sec = (Time)time / (Time)1000000; 130 req.tv_nsec = ((Time)time%(Time)1000000)*((Time)1000); 131 131 struct timespec rem; 132 132 if(nanosleep(&req,&rem)!=0) Err("error in nanosleep\n");//todo, handle EINTR
Note:
See TracChangeset
for help on using the changeset viewer.