diff options
author | David Robillard <d@drobilla.net> | 2011-01-09 19:57:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-09 19:57:24 +0000 |
commit | 0679f2c8044579e96334d782d86fd6b5a79c3185 (patch) | |
tree | c47671f6de977430838a35189a16b1816c6ffa98 /src | |
parent | 7f665dbc3a45522216b34cf8f3cebf887220c724 (diff) | |
download | raul-0679f2c8044579e96334d782d86fd6b5a79c3185.tar.gz raul-0679f2c8044579e96334d782d86fd6b5a79c3185.tar.bz2 raul-0679f2c8044579e96334d782d86fd6b5a79c3185.zip |
Non-trivial thread/semaphore test.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@2803 a436a847-0d15-0410-975c-d299462d15a1
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; |