1 /* ---------------------------------------------------------------------------
3 * (c) The GHC Team, 2006
5 * Thread-related functionality
7 * --------------------------------------------------------------------------*/
14 StgTSO * unblockOne (Capability *cap, StgTSO *tso);
15 StgTSO * unblockOne_ (Capability *cap, StgTSO *tso, rtsBool allow_migrate);
17 void awakenBlockedQueue (Capability *cap, StgTSO *tso);
19 void removeThreadFromMVarQueue (Capability *cap, StgMVar *mvar, StgTSO *tso);
20 void removeThreadFromQueue (Capability *cap, StgTSO **queue, StgTSO *tso);
21 void removeThreadFromDeQueue (Capability *cap, StgTSO **head, StgTSO **tail, StgTSO *tso);
23 StgBool isThreadBound (StgTSO* tso);
26 void printThreadBlockage (StgTSO *tso);
27 void printThreadStatus (StgTSO *t);
28 void printAllThreads (void);
29 void printThreadQueue (StgTSO *t);
34 #endif /* THREADS_H */