comparison system/System.h @ 232:03a24547cf3c

* Fix crash in short spectrogram paint * Fix incorrect apparent end point for waveforms
author Chris Cannam
date Wed, 14 Feb 2007 17:52:06 +0000
parents bf753a9abf0c
children 7033e188b2b2
comparison
equal deleted inserted replaced
231:0031495aba07 232:03a24547cf3c
63 #include <dlfcn.h> 63 #include <dlfcn.h>
64 64
65 #define MLOCK(a,b) ::mlock((a),(b)) 65 #define MLOCK(a,b) ::mlock((a),(b))
66 #define MUNLOCK(a,b) (::munlock((a),(b)) ? (::perror("munlock failed"), 0) : 0) 66 #define MUNLOCK(a,b) (::munlock((a),(b)) ? (::perror("munlock failed"), 0) : 0)
67 #define MUNLOCK_SAMPLEBLOCK(a) do { if (!(a).empty()) { const float &b = *(a).begin(); MUNLOCK(&b, (a).capacity() * sizeof(float)); } } while(0); 67 #define MUNLOCK_SAMPLEBLOCK(a) do { if (!(a).empty()) { const float &b = *(a).begin(); MUNLOCK(&b, (a).capacity() * sizeof(float)); } } while(0);
68 //#define MLOCK(a,b) 1
69 //#define MUNLOCK(a,b) 1
70 //#define MUNLOCK_SAMPLEBLOCK(a) 1
68 71
69 #define DLOPEN(a,b) dlopen((a).toStdString().c_str(),(b)) 72 #define DLOPEN(a,b) dlopen((a).toStdString().c_str(),(b))
70 #define DLSYM(a,b) dlsym((a),(b)) 73 #define DLSYM(a,b) dlsym((a),(b))
71 #define DLCLOSE(a) dlclose((a)) 74 #define DLCLOSE(a) dlclose((a))
72 #define DLERROR() dlerror() 75 #define DLERROR() dlerror()