summaryrefslogtreecommitdiff
path: root/spectro/conv.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-09-01 15:43:52 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-09-01 15:43:52 +0200
commitc07d0c2d2f6f7b0eb6e92cc6204bf05037957e82 (patch)
tree41791cbe367cf023b98043fee56f9346b2592b49 /spectro/conv.h
parentd7f89e6fe63b8697fab5a901cfce457b375638b3 (diff)
Imported Upstream version 1.6.3upstream/1.6.3
Diffstat (limited to 'spectro/conv.h')
-rw-r--r--spectro/conv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/spectro/conv.h b/spectro/conv.h
index ab5e850..5d63efe 100644
--- a/spectro/conv.h
+++ b/spectro/conv.h
@@ -151,6 +151,7 @@ int set_normal_priority();
#ifdef NT
# define amutex CRITICAL_SECTION
+# define amutex_static(lock) CRITICAL_SECTION lock = { NULL, -1 }
# define amutex_init(lock) InitializeCriticalSection(&(lock))
# define amutex_del(lock) DeleteCriticalSection(&(lock))
# define amutex_lock(lock) EnterCriticalSection(&(lock))
@@ -160,6 +161,7 @@ int set_normal_priority();
#ifdef UNIX
# define amutex pthread_mutex_t
+# define amutex_static(lock) pthread_mutex_t (lock) = PTHREAD_MUTEX_INITIALIZER
# define amutex_init(lock) pthread_mutex_init(&(lock), NULL)
# define amutex_del(lock) pthread_mutex_destroy(&(lock))
# define amutex_lock(lock) pthread_mutex_lock(&(lock))
@@ -286,6 +288,10 @@ int sa_lu_psinvert(double **out, double **in, int m, int n);
#define lu_psinvert sa_lu_psinvert
#endif /* SALONEINSTLIB */
+
+/* - - - - - - - - - - - - - - - - - - -- */
+
+
/* - - - - - - - - - - - - - - - - - - -- */