Skip to content

Commit

Permalink
Merge branch 'main' into make-type-used-for-run-time-counter-configur…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
RichardBarry authored Jun 12, 2021
2 parents dcdf968 + 6a84f2c commit 5487418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portable/ThirdParty/GCC/Posix/utils/wait_for_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ bool event_wait_timed( struct event * ev,
int ret = 0;

clock_gettime( CLOCK_REALTIME, &ts );
//ts.tv_sec += ms;
ts.tv_nsec += (ms * 1000000);
ts.tv_sec += ms / 1000;
ts.tv_nsec += ((ms % 1000) * 1000000);
pthread_mutex_lock( &ev->mutex );

while( (ev->event_triggered == false) && (ret == 0) )
Expand Down

0 comments on commit 5487418

Please sign in to comment.