projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2001-10-31 17:04:45 by rrt]
[ghc-hetmet.git]
/
ghc
/
rts
/
Schedule.h
diff --git
a/ghc/rts/Schedule.h
b/ghc/rts/Schedule.h
index
e7b51ba
..
00b4de1
100644
(file)
--- a/
ghc/rts/Schedule.h
+++ b/
ghc/rts/Schedule.h
@@
-1,5
+1,5
@@
/* -----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------
- * $Id: Schedule.h,v 1.21 2000/12/04 12:31:21 simonmar Exp $
+ * $Id: Schedule.h,v 1.22 2001/03/22 03:51:10 hwloidl Exp $
*
* (c) The GHC Team 1998-1999
*
*
* (c) The GHC Team 1998-1999
*
@@
-32,7
+32,6
@@
void exitScheduler( void );
void startTasks( void );
#endif
void startTasks( void );
#endif
-
//@cindex awakenBlockedQueue
/* awakenBlockedQueue()
*
//@cindex awakenBlockedQueue
/* awakenBlockedQueue()
*
@@
-198,15
+197,15
@@
void printThreadStatus(StgTSO *tso);
void printAllThreads(void);
#endif
void print_bq (StgClosure *node);
void printAllThreads(void);
#endif
void print_bq (StgClosure *node);
+#if defined(PAR)
+void print_bqe (StgBlockingQueueElement *bqe);
+#endif
/* -----------------------------------------------------------------------------
* Some convenient macros...
*/
/* -----------------------------------------------------------------------------
* Some convenient macros...
*/
-/* this is the NIL ptr for a TSO queue (e.g. runnable queue) */
-#define END_TSO_QUEUE ((StgTSO *)(void*)&stg_END_TSO_QUEUE_closure)
-/* this is the NIL ptr for a list CAFs */
-#define END_ECAF_LIST ((StgCAF *)(void*)&stg_END_TSO_QUEUE_closure)
+/* END_TSO_QUEUE and friends now defined in includes/StgMiscClosures.h */
//@cindex APPEND_TO_RUN_QUEUE
/* Add a thread to the end of the run queue.
//@cindex APPEND_TO_RUN_QUEUE
/* Add a thread to the end of the run queue.
@@
-273,6
+272,11
@@
void print_bq (StgClosure *node);
#define THREAD_RUNNABLE() /* nothing */
#endif
#define THREAD_RUNNABLE() /* nothing */
#endif
+//@cindex EMPTY_RUN_QUEUE
+/* Check whether the run queue is empty i.e. the PE is idle
+ */
+#define EMPTY_RUN_QUEUE() (run_queue_hd == END_TSO_QUEUE)
+
//@node Index, , Some convenient macros
//@subsection Index
//@node Index, , Some convenient macros
//@subsection Index