summaryrefslogtreecommitdiff
path: root/common/JackShmMem.h
diff options
context:
space:
mode:
authorsletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224>2009-11-14 18:25:16 +0000
committersletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224>2009-11-14 18:25:16 +0000
commit2cbaece993e1b4c789eb065d2902f971fe8936d0 (patch)
treeb138c601c7995ac05ba3191e126063c32bba3f2f /common/JackShmMem.h
parent9e263b52ac1de3a8042a1c3d304d56ea12fcf242 (diff)
downloadjack2-2cbaece993e1b4c789eb065d2902f971fe8936d0.tar.gz
Sync with JACK1 : -r parameter now used for no-realtime, realtime (-R) is now default, usable backend given vie platform.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3791 0c269be4-1314-0410-8aa9-9f06e86f4224
Diffstat (limited to 'common/JackShmMem.h')
-rw-r--r--common/JackShmMem.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/common/JackShmMem.h b/common/JackShmMem.h
index 816ed4cd..0a00daa5 100644
--- a/common/JackShmMem.h
+++ b/common/JackShmMem.h
@@ -1,6 +1,6 @@
/*
Copyright (C) 2001 Paul Davis
-Copyright (C) 2004-2008 Grame
+Copyright (C) 2004-2009 Grame
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -163,7 +163,7 @@ class JackShmReadWritePtr
if (jack_attach_shm(&fInfo)) {
throw - 2;
}
- static_cast<T*>(fInfo.ptr.attached_at)->LockMemory();
+ GetShmAddress()->LockMemory();
}
}
@@ -184,7 +184,7 @@ class JackShmReadWritePtr
{
if (fInfo.index >= 0) {
jack_log("JackShmReadWritePtr::~JackShmReadWritePtr %ld", fInfo.index);
- static_cast<T*>(fInfo.ptr.attached_at)->UnlockMemory();
+ GetShmAddress()->UnlockMemory();
jack_release_shm(&fInfo);
fInfo.index = -1;
}
@@ -250,7 +250,7 @@ class JackShmReadWritePtr1
vanish till we exit (and release it).
*/
jack_destroy_shm(&fInfo);
- static_cast<T*>(fInfo.ptr.attached_at)->LockMemory();
+ GetShmAddress()->LockMemory();
}
}
@@ -271,7 +271,7 @@ class JackShmReadWritePtr1
{
if (fInfo.index >= 0) {
jack_log("JackShmReadWritePtr1::~JackShmReadWritePtr1 %ld", fInfo.index);
- static_cast<T*>(fInfo.ptr.attached_at)->UnlockMemory();
+ GetShmAddress()->UnlockMemory();
jack_release_shm(&fInfo);
fInfo.index = -1;
}
@@ -331,7 +331,7 @@ class JackShmReadPtr
if (jack_attach_shm_read(&fInfo)) {
throw - 2;
}
- static_cast<T*>(fInfo.ptr.attached_at)->LockMemory();
+ GetShmAddress()->LockMemory();
}
}
@@ -352,7 +352,7 @@ class JackShmReadPtr
{
if (fInfo.index >= 0) {
jack_log("JackShmPtrRead::~JackShmPtrRead %ld", fInfo.index);
- static_cast<T*>(fInfo.ptr.attached_at)->UnlockMemory();
+ GetShmAddress()->UnlockMemory();
jack_release_shm(&fInfo);
fInfo.index = -1;
}