Un-break the non-threaded RTS
Sorry :-/
/* ----------------------------------------------------------------------------
/* ----------------------------------------------------------------------------
- * $Id: RtsAPI.c,v 1.39 2003/01/25 15:54:49 wolfgang Exp $
+ * $Id: RtsAPI.c,v 1.40 2003/01/27 11:08:16 wolfgang Exp $
*
* (c) The GHC Team, 1998-2001
*
*
* (c) The GHC Team, 1998-2001
*
-#ifdef RTS_SUPPORTS_THREADS
+#ifdef RTS_SUPPORTS_THREADS
Capability *cap;
ACQUIRE_LOCK(&sched_mutex);
Capability *cap;
ACQUIRE_LOCK(&sched_mutex);
// If there is already a task available (waiting for the work capability),
// this will do nothing.
startSchedulerTask();
// If there is already a task available (waiting for the work capability),
// this will do nothing.
startSchedulerTask();
+#ifdef RTS_SUPPORTS_THREADS
RELEASE_LOCK(&sched_mutex);
RELEASE_LOCK(&sched_mutex);