[commit: ghc] master: rts: detabify/dewhitespace Task.h (ee0e47d)
git at git.haskell.org
git at git.haskell.org
Wed Aug 20 17:32:04 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/ee0e47d7d74cdc347516a757a74e5349620bf44c/ghc
>---------------------------------------------------------------
commit ee0e47d7d74cdc347516a757a74e5349620bf44c
Author: Austin Seipp <austin at well-typed.com>
Date: Wed Aug 20 12:24:37 2014 -0500
rts: detabify/dewhitespace Task.h
Signed-off-by: Austin Seipp <austin at well-typed.com>
>---------------------------------------------------------------
ee0e47d7d74cdc347516a757a74e5349620bf44c
rts/Task.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/rts/Task.h b/rts/Task.h
index 7019499..82071c5 100644
--- a/rts/Task.h
+++ b/rts/Task.h
@@ -64,7 +64,7 @@
(a) waiting on the condition task->cond. The Task is either
(1) a bound Task, the TSO will be on a queue somewhere
- (2) a worker task, on the spare_workers queue of task->cap.
+ (2) a worker task, on the spare_workers queue of task->cap.
(b) making a foreign call. The InCall will be on the
suspended_ccalls list.
@@ -74,7 +74,7 @@
(a) the task is currently blocked in yieldCapability().
This call will return when we have ownership of the Task and
a Capability. The Capability we get might not be the same
- as the one we had when we called yieldCapability().
+ as the one we had when we called yieldCapability().
(b) we must call resumeThread(task), which will safely establish
ownership of the Task and a Capability.
@@ -86,7 +86,7 @@ typedef struct InCall_ {
StgTSO * tso; // the bound TSO (or NULL for a worker)
StgTSO * suspended_tso; // the TSO is stashed here when we
- // make a foreign call (NULL otherwise);
+ // make a foreign call (NULL otherwise);
Capability *suspended_cap; // The capability that the
// suspended_tso is on, because
@@ -113,10 +113,10 @@ typedef struct InCall_ {
typedef struct Task_ {
#if defined(THREADED_RTS)
- OSThreadId id; // The OS Thread ID of this task
+ OSThreadId id; // The OS Thread ID of this task
Condition cond; // used for sleeping & waking up this task
- Mutex lock; // lock for the condition variable
+ Mutex lock; // lock for the condition variable
// this flag tells the task whether it should wait on task->cond
// or just continue immediately. It's a workaround for the fact
More information about the ghc-commits
mailing list