diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Thread.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Thread.cpp b/src/Thread.cpp index d45f363..045db0f 100644 --- a/src/Thread.cpp +++ b/src/Thread.cpp @@ -115,6 +115,12 @@ Thread::stop() } void +Thread::join() +{ + pthread_join(_pthread, NULL); +} + +void Thread::set_scheduling(int policy, unsigned int priority) { sched_param sp; |