summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am10
-rw-r--r--src/Thread.cpp21
2 files changed, 31 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..aa1143e
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,10 @@
+AM_CXXFLAGS = -I$(top_srcdir)
+
+lib_LTLIBRARIES = libraul.la
+
+#libraul_la_LIBADD = @FOO_LIBS@
+
+libraul_la_SOURCES = \
+ Thread.cpp
+
+
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;