Changeset 7712

Show
Ignore:
Timestamp:
12/17/07 21:57:49
Author:
robert
Message:

From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)."

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenThreads/trunk/src/OpenThreads/win32/WIN32Condition.cpp

    r6584 r7712  
    2727//---------------------------------------------------------------------------- 
    2828// 
    29 // Decription: Constructor 
     29// Description: Constructor 
    3030// 
    3131// Use: public. 
     
    3838//---------------------------------------------------------------------------- 
    3939// 
    40 // Decription: Destructor 
     40// Description: Destructor 
    4141// 
    4242// Use: public. 
     
    5151//---------------------------------------------------------------------------- 
    5252// 
    53 // Decription: wait on a condition 
     53// Description: wait on a condition 
    5454// 
    5555// Use: public. 
     
    6464//---------------------------------------------------------------------------- 
    6565// 
    66 // Decription: wait on a condition, for a specified period of time 
     66// Description: wait on a condition, for a specified period of time 
    6767// 
    6868// Use: public. 
     
    7777//---------------------------------------------------------------------------- 
    7878// 
    79 // Decription: signal a thread to wake up. 
     79// Description: signal a thread to wake up. 
    8080// 
    8181// Use: public. 
     
    8989//---------------------------------------------------------------------------- 
    9090// 
    91 // Decription: signal many threads to wake up. 
     91// Description: signal many threads to wake up. 
    9292// 
    9393// Use: public. 
  • OpenThreads/trunk/src/OpenThreads/win32/Win32Mutex.cpp

    r6584 r7712  
    7878//---------------------------------------------------------------------------- 
    7979// 
    80 // Decription: Constructor 
     80// Description: Constructor 
    8181// 
    8282// Use: public. 
     
    8989//---------------------------------------------------------------------------- 
    9090// 
    91 // Decription: Destructor 
     91// Description: Destructor 
    9292// 
    9393// Use: public. 
     
    9999//---------------------------------------------------------------------------- 
    100100// 
    101 // Decription: lock the mutex 
     101// Description: lock the mutex 
    102102// 
    103103// Use: public. 
     
    162162//---------------------------------------------------------------------------- 
    163163// 
    164 // Decription: unlock the mutex 
     164// Description: unlock the mutex 
    165165// 
    166166// Use: public. 
     
    191191//---------------------------------------------------------------------------- 
    192192// 
    193 // Decription: test if the mutex may be locked 
     193// Description: test if the mutex may be locked 
    194194// 
    195195// Use: public. 
  • OpenThreads/trunk/src/OpenThreads/win32/Win32Thread.cpp

    r7470 r7712  
    229229//---------------------------------------------------------------------------- 
    230230// 
    231 // Decription: Constructor 
     231// Description: Constructor 
    232232// 
    233233// Use: public. 
     
    255255//---------------------------------------------------------------------------- 
    256256// 
    257 // Decription: Destructor 
     257// Description: Destructor 
    258258// 
    259259// Use: public. 
     
    328328    //------------------------------------------------------------------------- 
    329329    // Prohibit the stack size from being changed. 
    330     // (bb 5/13/2005) it acctualy doesn't matter. 
    331     // 1) usually setStackSize()/start() sequence iz serialized.  
     330    // (bb 5/13/2005) it actually doesn't matter. 
     331    // 1) usually setStackSize()/start() sequence is serialized.  
    332332    // 2) if not than we're in trouble anyway - nothing is protected  
    333333    // pd->stackSizeLocked = true; 
     
    469469//----------------------------------------------------------------------------- 
    470470// 
    471 // Description: set the thread to cancel at the next convienent point. 
     471// Description: set the thread to cancel at the next convenient point. 
    472472// 
    473473// Use: public 
     
    577577/* 
    578578    This one is funny. 
    579     This is "non-mandatory" affinity , winows will try to use dwIdealProcessor 
     579    This is "non-mandatory" affinity , windows will try to use dwIdealProcessor 
    580580    whenever possible ( when Bill's account is over 50B, maybe :-) ). 
    581581 
  • OpenThreads/trunk/src/OpenThreads/win32/Win32ThreadBarrier.cpp

    r6584 r7712  
    3030//---------------------------------------------------------------------------- 
    3131// 
    32 // Decription: Constructor 
     32// Description: Constructor 
    3333// 
    3434// Use: public. 
     
    4444//---------------------------------------------------------------------------- 
    4545// 
    46 // Decription: Destructor 
     46// Description: Destructor 
    4747// 
    4848// Use: public. 
     
    5555//---------------------------------------------------------------------------- 
    5656// 
    57 // Decription: Reset the barrier to its original state 
     57// Description: Reset the barrier to its original state 
    5858// 
    5959// Use: public. 
     
    6767//---------------------------------------------------------------------------- 
    6868// 
    69 // Decription: Block until numThreads threads have entered the barrier. 
     69// Description: Block until numThreads threads have entered the barrier. 
    7070// 
    7171// Use: public. 
     
    8686 
    8787        if (pd->cnt == pd->maxcnt) {             // I am the last one 
    88                    pd->cnt = 0;                         // reset for next use 
    89                    pd->phase = 1 - my_phase;            // toggle phase 
    90                    pd->cond.broadcast(); 
     88            pd->cnt = 0;                         // reset for next use 
     89            pd->phase = 1 - my_phase;            // toggle phase 
     90            pd->cond.broadcast(); 
    9191        }else{  
    92                    while (pd->phase == my_phase ) { 
    93                            pd->cond.wait(&pd->lock); 
    94                    } 
    95            } 
     92            while (pd->phase == my_phase ) { 
     93                pd->cond.wait(&pd->lock); 
     94            } 
     95        } 
    9696    } 
    9797} 
     
    102102            static_cast<Win32BarrierPrivateData*>(_prvData); 
    103103 
    104        pd->lock.lock(); 
    105        _valid = false; 
    106        pd->lock.unlock(); 
    107        release(); 
     104    pd->lock.lock(); 
     105    _valid = false; 
     106    pd->lock.unlock(); 
     107    release(); 
    108108} 
    109109