bug fixes
[IRC.git] / Robust / src / Runtime / runtime.h
index 28d9cc798e9b64fcd17ec622efc0390cdd8c7dd0..b014f85d6bcc5e4d24881c05e951ab918656842d 100644 (file)
@@ -157,17 +157,6 @@ inline void setupsmemmode(void);
 #endif
 #endif
 
-#ifdef TASK
-#ifndef MULTICORE
-#include "chash.h"
-#include "ObjectHash.h"
-#include "structdefs.h"
-#endif
-#include "task.h"
-#ifdef OPTIONAL
-#include "optionalstruct.h"
-#endif
-
 #define MAXLOCKS 256
 
 struct lockpair {
@@ -180,6 +169,21 @@ struct lockvector {
   struct lockpair locks[MAXLOCKS];
 };
 
+#ifndef MAC
+extern __thread struct lockvector lvector;
+#endif
+
+#ifdef TASK
+#ifndef MULTICORE
+#include "chash.h"
+#include "ObjectHash.h"
+#include "structdefs.h"
+#endif
+#include "task.h"
+#ifdef OPTIONAL
+#include "optionalstruct.h"
+#endif
+
 
 #ifdef OPTIONAL
 struct failedtasklist {