[ci skip] includes: detabify/dewhitespace rts/storage/TSO.h
authorAustin Seipp <austin@well-typed.com>
Wed, 20 Aug 2014 17:47:07 +0000 (12:47 -0500)
committerAustin Seipp <austin@well-typed.com>
Wed, 20 Aug 2014 17:51:31 +0000 (12:51 -0500)
Signed-off-by: Austin Seipp <austin@well-typed.com>
includes/rts/storage/TSO.h

index 187b668..6dbcec2 100644 (file)
@@ -50,7 +50,7 @@ typedef union {
   struct MessageBlackHole_ *bh;
   struct MessageThrowTo_ *throwto;
   struct MessageWakeup_  *wakeup;
-  StgInt fd;   /* StgInt instead of int, so that it's the same size as the ptrs */
+  StgInt fd;    /* StgInt instead of int, so that it's the same size as the ptrs */
 #if defined(mingw32_HOST_OS)
   StgAsyncIOResult *async_result;
 #endif
@@ -102,7 +102,7 @@ typedef struct StgTSO_ {
 
     struct StgTSO_*         global_link;    // Links threads on the
                                             // generation->threads lists
-    
+
     /*
      * The thread's stack
      */
@@ -202,37 +202,37 @@ void dirty_STACK (Capability *cap, StgStack *stack);
 
       tso->stack < tso->sp < tso->stack+tso->stack_size
       tso->stack_size <= tso->max_stack_size
-      
+
       RESERVED_STACK_WORDS is large enough for any heap-check or
       stack-check failure.
 
       The size of the TSO struct plus the stack is either
         (a) smaller than a block, or
-       (b) a multiple of BLOCK_SIZE
+        (b) a multiple of BLOCK_SIZE
 
-       tso->why_blocked       tso->block_info      location
+        tso->why_blocked       tso->block_info      location
         ----------------------------------------------------------------------
-       NotBlocked             END_TSO_QUEUE        runnable_queue, or running
-       
+        NotBlocked             END_TSO_QUEUE        runnable_queue, or running
+
         BlockedOnBlackHole     the BLACKHOLE        blackhole_queue
-       
+
         BlockedOnMVar          the MVAR             the MVAR's queue
 
         BlockedOnSTM           END_TSO_QUEUE        STM wait queue(s)
         BlockedOnSTM           STM_AWOKEN           run queue
-       
+
         BlockedOnMsgThrowTo    MessageThrowTo *     TSO->blocked_exception
 
         BlockedOnRead          NULL                 blocked_queue
-        BlockedOnWrite         NULL                blocked_queue
+        BlockedOnWrite         NULL                 blocked_queue
         BlockedOnDelay         NULL                 blocked_queue
-       BlockedOnGA            closure TSO blocks on   BQ of that closure
-       BlockedOnGA_NoSend     closure TSO blocks on   BQ of that closure
+        BlockedOnGA            closure TSO blocks on   BQ of that closure
+        BlockedOnGA_NoSend     closure TSO blocks on   BQ of that closure
 
       tso->link == END_TSO_QUEUE, if the thread is currently running.
 
    A zombie thread has the following properties:
-      
+
       tso->what_next == ThreadComplete or ThreadKilled
       tso->link     ==  (could be on some queue somewhere)
       tso->sp       ==  tso->stack + tso->stack_size - 1 (i.e. top stack word)