boostorg / fiber

userland threads
464 stars 108 forks source link

fiber::sleepfor stop updating when system clock moves backwards #310

Open arc130 opened 1 year ago

arc130 commented 1 year ago

I'm using fiber with shared_work algo on boost 1.78 aarch64. a simple code is

while (true){
  this_fiber::sleep_for(100ms);

}

when system clock moves backwards, this fiber would never resumed.