diff options
author | David Robillard <d@drobilla.net> | 2007-01-06 19:39:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-01-06 19:39:56 +0000 |
commit | 4014067a1668d94000b059d72832482a06cf8369 (patch) | |
tree | 7617295999221d85fb5fdf6ac92f30beba4141da /src/Thread.cpp | |
parent | 1a2962681ff62598f6cbe9aed9c5d4c69c0020a6 (diff) | |
download | raul-4014067a1668d94000b059d72832482a06cf8369.tar.gz raul-4014067a1668d94000b059d72832482a06cf8369.tar.bz2 raul-4014067a1668d94000b059d72832482a06cf8369.zip |
Added ability to get Raul Thread for current calling context.
Strong threading assertions.
Flowcanvas port removal fixes.
Patch port destruction.
Code cleanups, bug fixes.
git-svn-id: http://svn.drobilla.net/lad/raul@234 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Thread.cpp')
-rw-r--r-- | src/Thread.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Thread.cpp b/src/Thread.cpp new file mode 100644 index 0000000..34ba0f9 --- /dev/null +++ b/src/Thread.cpp @@ -0,0 +1,21 @@ +/* This file is part of Ingen. Copyright (C) 2007 Dave Robillard. + * + * Ingen is free software; you can redistribute it and/or modify it under the + * terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) any later + * version. + * + * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "raul/Thread.h" + +/* Thread-specific data key (once-only initialized) */ +pthread_once_t Thread::_thread_key_once = PTHREAD_ONCE_INIT; +pthread_key_t Thread::_thread_key; |