[beast: 65/95] PLUGINS: use Bse::ScopedLock
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 65/95] PLUGINS: use Bse::ScopedLock
- Date: Mon, 25 Mar 2013 00:41:58 +0000 (UTC)
commit bb3d5783ce4952dd78391ba888751e62753471c4
Author: Tim Janik <timj gnu org>
Date: Wed Mar 20 04:18:07 2013 +0100
PLUGINS: use Bse::ScopedLock
plugins/davorgan.cc | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/plugins/davorgan.cc b/plugins/davorgan.cc
index 6f5f14d..7c7234e 100644
--- a/plugins/davorgan.cc
+++ b/plugins/davorgan.cc
@@ -50,7 +50,7 @@ class Organ : public OrganBase {
static Tables*
ref (uint rate)
{
- AutoLocker locker (table_mutex);
+ Bse::ScopedLock<Rapicorn::Mutex> locker (table_mutex);
if (table_map[rate])
table_map[rate]->m_ref_count++;
else
@@ -61,7 +61,7 @@ class Organ : public OrganBase {
unref()
{
return_if_fail (m_ref_count > 0);
- AutoLocker locker (table_mutex);
+ Bse::ScopedLock<Rapicorn::Mutex> locker (table_mutex);
if (--m_ref_count == 0)
{
table_map[m_rate] = 0;
@@ -245,9 +245,11 @@ public:
/* implement creation and config methods for synthesis Module */
BSE_EFFECT_INTEGRATE_MODULE (Organ, Module, Properties);
};
+
map<uint, Organ::Tables*> Organ::Tables::table_map;
Mutex Organ::Tables::table_mutex;
+
BSE_CXX_DEFINE_EXPORTS();
BSE_CXX_REGISTER_EFFECT (Organ);
-} // Dav
-} // Bse
+
+} } // Bse::Dav
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]