Skip to content

Commit

Permalink
fix thread sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
sveseli committed Feb 12, 2021
1 parent ff947a8 commit ced9ad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pvaccess/MultiChannel.481.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ void MultiChannel::ntMonitorThread(MultiChannel* multiChannel)
// Not good.
logger.error("Monitor thread caught exception while processing monitor data: %s", ex.what());
}
sleep(multiChannel->monitorPollPeriod);
epicsThreadSleep(multiChannel->monitorPollPeriod);
}

// Monitor thread done.
Expand Down Expand Up @@ -274,7 +274,7 @@ void MultiChannel::doubleMonitorThread(MultiChannel* multiChannel)
// Not good.
logger.error("Monitor thread caught exception while processing monitor data: %s", ex.what());
}
sleep(multiChannel->monitorPollPeriod);
epicsThreadSleep(multiChannel->monitorPollPeriod);
}

// Monitor thread done.
Expand Down

0 comments on commit ced9ad1

Please sign in to comment.