Browse Source

lockstep_scheduler: modernize warnings

sbg
Julian Oes 6 years ago
parent
commit
fb9f72d029
  1. 4
      src/platforms/posix/lockstep_scheduler/src/lockstep_scheduler.cpp

4
src/platforms/posix/lockstep_scheduler/src/lockstep_scheduler.cpp

@ -93,9 +93,9 @@ int LockstepScheduler::cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *loc @@ -93,9 +93,9 @@ int LockstepScheduler::cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *loc
int LockstepScheduler::usleep_until(uint64_t time_us)
{
pthread_mutex_t lock;
pthread_mutex_init(&lock, NULL);
pthread_mutex_init(&lock, nullptr);
pthread_cond_t cond;
pthread_cond_init(&cond, NULL);
pthread_cond_init(&cond, nullptr);
pthread_mutex_lock(&lock);

Loading…
Cancel
Save