start of new file
[IRC.git] / Robust / src / Runtime / object.c
index ab986ecbb141d16cd2f282fe1a8499e25446c887..0bff6175391fbe6eb589233fe2b707f828f391b9 100644 (file)
@@ -1,5 +1,9 @@
 #include "object.h"
+#ifdef RAW
+#include <raw.h>
+#else
 #include "stdio.h"
+#endif
 #include "stdlib.h"
 
 #ifdef THREADS
@@ -70,8 +74,12 @@ int CALL01(___Object______MonitorExit____, struct ___Object___ * ___this___) {
     pthread_cond_broadcast(&objcond);
     pthread_mutex_unlock(&objlock);
   } else {
+#ifdef RAW
+         raw_test_done(-1);
+#else
     printf("ERROR...UNLOCKING LOCK WE DON'T HAVE\n");
     exit(-1);
+#endif
   }
 }
 #endif