Changeset 313 in flair-src for trunk/lib/FlairCore


Ignore:
Timestamp:
Mar 21, 2019, 11:30:17 AM (6 years ago)
Author:
Sanahuja Guillaume
Message:

maj thread

Location:
trunk/lib/FlairCore/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/src/FrameworkManager_impl.cpp

    r290 r313  
    152152  SafeStop();
    153153  Join();
     154 
     155  if(gcs_watchdog!=NULL) gcs_watchdog->SafeStop();
    154156
    155157  if (rcv_buf != NULL)
  • trunk/lib/FlairCore/src/Thread.cpp

    r307 r313  
    127127  //usleep(time);
    128128  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);
    131131  struct timespec rem;
    132132  if(nanosleep(&req,&rem)!=0) Err("error in nanosleep\n");//todo, handle EINTR
Note: See TracChangeset for help on using the changeset viewer.