Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alfredo Di Napoli
GHC
Commits
9d037f55
Commit
9d037f55
authored
Feb 12, 2002
by
sof
Browse files
[project @ 2002-02-12 15:39:49 by sof]
THREAD_RUNNABLE(): make available in threaded mode
parent
a62d5cd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/Schedule.h
View file @
9d037f55
/* -----------------------------------------------------------------------------
* $Id: Schedule.h,v 1.2
6
2002/02/
04 20:40:37
sof Exp $
* $Id: Schedule.h,v 1.2
7
2002/02/
12 15:39:49
sof Exp $
*
* (c) The GHC Team 1998-1999
*
...
...
@@ -159,7 +159,9 @@ extern StgTSO *all_threads;
#if defined(RTS_SUPPORTS_THREADS)
extern
Mutex
sched_mutex
;
extern
Condition
thread_ready_cond
;
# if defined(SMP)
extern
Condition
gc_pending_cond
;
# endif
#endif
/* Called by shutdown_handler(). */
...
...
@@ -246,9 +248,9 @@ void print_bqe (StgBlockingQueueElement *bqe);
/* Signal that a runnable thread has become available, in
* case there are any waiting tasks to execute it.
*/
#ifdef
SMP
#if
def
ined(RTS_SUPPORTS_THREADS)
#define THREAD_RUNNABLE() \
if (
free_c
apabilities
!= NULL) {
\
if (
!noC
apabilities
() ) {
\
signalCondition(&thread_ready_cond); \
} \
context_switch = 1;
...
...
@@ -260,6 +262,7 @@ void print_bqe (StgBlockingQueueElement *bqe);
/* Check whether the run queue is empty i.e. the PE is idle
*/
#define EMPTY_RUN_QUEUE() (run_queue_hd == END_TSO_QUEUE)
#define EMPTY_QUEUE(q) (q == END_TSO_QUEUE)
#endif
/* __SCHEDULE_H__ */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment