Use only perl_clone if USE_ITHREADS is defined
authorAdam Dickmeiss <adam@indexdata.dk>
Sat, 29 May 2004 07:04:26 +0000 (07:04 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Sat, 29 May 2004 07:04:26 +0000 (07:04 +0000)
SimpleServer.xs

index f3cd24b..9e27621 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: SimpleServer.xs,v 1.25 2004-05-14 04:07:50 adam Exp $ 
+ * $Id: SimpleServer.xs,v 1.26 2004-05-29 07:04:26 adam Exp $ 
  * ----------------------------------------------------------------------
  * 
  * Copyright (c) 2000-2004, Index Data.
@@ -118,6 +118,7 @@ int tst_clones(void)
 #endif
 
 int simpleserver_clone(void) {
+#ifdef USE_ITHREADS
      nmem_mutex_enter(simpleserver_mutex);
      if (1)
      {
@@ -135,6 +136,7 @@ int simpleserver_clone(void) {
          }
      }
      nmem_mutex_leave(simpleserver_mutex);
+#endif
      return 0;
 }