git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2965 0c269be4-1314-0410-8aa9-9f06e86f4224tags/1.90
@@ -23,6 +23,10 @@ Michael Voigt | |||||
Jackdmp changes log | Jackdmp changes log | ||||
--------------------------- | --------------------------- | ||||
2008-10-08 Stephane Letz <letz@grame.fr> | |||||
* Fix a SMP related bug introduced in rev 2957 : remove the __SMP__ flag and define LOCK for SMP in all cases. | |||||
2008-10-02 Stephane Letz <letz@grame.fr> | 2008-10-02 Stephane Letz <letz@grame.fr> | ||||
* Correct file permission for jack-shm-registry POSIX shared memory segment. | * Correct file permission for jack-shm-registry POSIX shared memory segment. | ||||
@@ -21,7 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |||||
#define __JackAtomic__ | #define __JackAtomic__ | ||||
#include "JackTypes.h" | #include "JackTypes.h" | ||||
#include "JackAtomic_os.h" | #include "JackAtomic_os.h" | ||||
static inline long INC_ATOMIC(volatile SInt32* val) | static inline long INC_ATOMIC(volatile SInt32* val) | ||||
@@ -52,11 +52,7 @@ static inline int CAS(register UInt32 value, register UInt32 newvalue, register | |||||
#if defined(__i386__) || defined(__x86_64__) | #if defined(__i386__) || defined(__x86_64__) | ||||
#ifdef __SMP__ | |||||
# define LOCK "lock ; " | |||||
#else | |||||
# define LOCK "" | |||||
#endif | |||||
#define LOCK "lock ; " | |||||
static inline char CAS(volatile UInt32 value, UInt32 newvalue, volatile void* addr) | static inline char CAS(volatile UInt32 value, UInt32 newvalue, volatile void* addr) | ||||
{ | { | ||||
@@ -52,11 +52,7 @@ static inline int CAS(register UInt32 value, register UInt32 newvalue, register | |||||
#if defined(__i386__) || defined(__x86_64__) | #if defined(__i386__) || defined(__x86_64__) | ||||
#ifdef __SMP__ | |||||
# define LOCK "lock ; " | |||||
#else | |||||
# define LOCK "" | |||||
#endif | |||||
#define LOCK "lock ; " | |||||
static inline char CAS(volatile UInt32 value, UInt32 newvalue, volatile void* addr) | static inline char CAS(volatile UInt32 value, UInt32 newvalue, volatile void* addr) | ||||
{ | { | ||||
@@ -55,11 +55,7 @@ inline char CAS(volatile UInt32 value, UInt32 newvalue, volatile void * addr) | |||||
#else | #else | ||||
#ifdef __SMP__ | |||||
# define LOCK "lock ; " | |||||
#else | |||||
# define LOCK "" | |||||
#endif | |||||
#define LOCK "lock ; " | |||||
static inline char CAS(volatile UInt32 value, UInt32 newvalue, volatile void* addr) | static inline char CAS(volatile UInt32 value, UInt32 newvalue, volatile void* addr) | ||||
{ | { | ||||
@@ -105,7 +105,6 @@ def configure(conf): | |||||
conf.define('ADDON_DIR', os.path.normpath(conf.env['PREFIX'] + '/lib/jack')) | conf.define('ADDON_DIR', os.path.normpath(conf.env['PREFIX'] + '/lib/jack')) | ||||
conf.define('JACK_LOCATION', os.path.normpath(conf.env['PREFIX'] + '/bin')) | conf.define('JACK_LOCATION', os.path.normpath(conf.env['PREFIX'] + '/bin')) | ||||
conf.define('__SMP__', 1) | |||||
conf.define('USE_POSIX_SHM', 1) | conf.define('USE_POSIX_SHM', 1) | ||||
conf.define('JACKMP', 1) | conf.define('JACKMP', 1) | ||||
if conf.env['BUILD_JACKDBUS'] == True: | if conf.env['BUILD_JACKDBUS'] == True: | ||||