Skip to content
Snippets Groups Projects
Commit 318499f5 authored by Beat Küng's avatar Beat Küng Committed by Julian Oes
Browse files

lockstep_scheduler: inline get_absolute_time()

This is a small method that is used a lot.
parent 29a09507
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ class LockstepScheduler
{
public:
void set_absolute_time(uint64_t time_us);
uint64_t get_absolute_time() const;
inline uint64_t get_absolute_time() const { return time_us_; }
int cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *lock, uint64_t time_us);
int usleep_until(uint64_t timed_us);
......
#include "lockstep_scheduler/lockstep_scheduler.h"
uint64_t LockstepScheduler::get_absolute_time() const
{
return time_us_;
}
void LockstepScheduler::set_absolute_time(uint64_t time_us)
{
time_us_ = time_us;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment