Use OSThreadProcAttr for workerStart
authorIan Lynagh <igloo@earth.li>
Thu, 11 Sep 2008 15:38:27 +0000 (15:38 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 11 Sep 2008 15:38:27 +0000 (15:38 +0000)
rts/Schedule.c
rts/Schedule.h

index 7f59f09..a41dd67 100644 (file)
@@ -1912,7 +1912,7 @@ scheduleWaitThread (StgTSO* tso, /*[out]*/HaskellObj* ret, Capability *cap)
  * ------------------------------------------------------------------------- */
 
 #if defined(THREADED_RTS)
-void
+void OSThreadProcAttr
 workerStart(Task *task)
 {
     Capability *cap;
index 45aa000..6ed7598 100644 (file)
@@ -70,7 +70,9 @@ StgWord findRetryFrameHelper (StgTSO *tso);
  * Called from STG :  NO
  * Locks assumed   :  none
  */
-void workerStart(Task *task);
+#if defined(THREADED_RTS)
+void OSThreadProcAttr workerStart(Task *task);
+#endif
 
 #if defined(GRAN)
 void    awaken_blocked_queue(StgBlockingQueueElement *q, StgClosure *node);