aboutsummaryrefslogtreecommitdiff
path: root/src/Steer.c
diff options
context:
space:
mode:
authortradke <tradke@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2001-04-05 14:41:17 +0000
committertradke <tradke@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2001-04-05 14:41:17 +0000
commit04c49872fd97d93e637ddb92d72d06059d145b1d (patch)
tree7253aada54b7c970c2201db743532589b17e1233 /src/Steer.c
parent9440c6b2556d012a91c44eee00c56790819b722f (diff)
Changed '#ifdef PTHREADS' into '#ifdef CCTK_PTHREADS'.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@121 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Steer.c')
-rw-r--r--src/Steer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Steer.c b/src/Steer.c
index 61db400..b91f711 100644
--- a/src/Steer.c
+++ b/src/Steer.c
@@ -13,7 +13,7 @@
#include "cctk.h"
#endif
-#ifdef PTHREADS
+#ifdef CCTK_PTHREADS
#include <pthread.h>
#endif
@@ -62,7 +62,7 @@ static void ByteSwap(void *buf,int nelements,int elementsize);
static char *queuebuffer = NULL;
static int queuebuffer_size = 0;
-#ifdef PTHREADS
+#ifdef CCTK_PTHREADS
static pthread_mutex_t steer_mutex = PTHREAD_MUTEX_INITIALIZER;
#endif
@@ -93,7 +93,7 @@ int HTTP_SteerQueue(const char *thorn, const char *parameter, const char *value)
retval = 0;
-#ifdef PTHREADS
+#ifdef CCTK_PTHREADS
pthread_mutex_lock(&steer_mutex);
#endif
@@ -125,7 +125,7 @@ int HTTP_SteerQueue(const char *thorn, const char *parameter, const char *value)
thorn,parameter, value);
}
-#ifdef PTHREADS
+#ifdef CCTK_PTHREADS
pthread_mutex_unlock(&steer_mutex);
#endif
@@ -148,7 +148,7 @@ int HTTP_SteerQueue(const char *thorn, const char *parameter, const char *value)
@@*/
int HTTP_SteerDispatch(void)
{
-#ifdef PTHREADS
+#ifdef CCTK_PTHREADS
pthread_mutex_lock(&steer_mutex);
#endif
@@ -156,7 +156,7 @@ int HTTP_SteerDispatch(void)
SteerParameters();
-#ifdef PTHREADS
+#ifdef CCTK_PTHREADS
pthread_mutex_unlock(&steer_mutex);
#endif