From 8140170f4b3fe308f346712a4bc93cdeecf55e8c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 10 Feb 2007 01:11:44 +0000 Subject: Made Raul::List read/write thread safe. Uh.. kinda, a bit. :) Reorganized machina into libraries. git-svn-id: http://svn.drobilla.net/lad/raul@295 a436a847-0d15-0410-975c-d299462d15a1 --- raul/AtomicPtr.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'raul/AtomicPtr.h') diff --git a/raul/AtomicPtr.h b/raul/AtomicPtr.h index c70dd39..bc24f59 100644 --- a/raul/AtomicPtr.h +++ b/raul/AtomicPtr.h @@ -27,6 +27,9 @@ template class AtomicPtr { public: + inline AtomicPtr() + { g_atomic_pointer_set(&_val, NULL); } + inline AtomicPtr(const AtomicPtr& copy) { g_atomic_pointer_set(&_val, copy.get()); } -- cgit v1.2.1