Changeset 238

Show
Ignore:
Timestamp:
02/02/10 17:48:20 (2 years ago)
Author:
sean
Message:

Changed "static this" to "shared static this".

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/core/cpuid.d

    r222 r238  
    748748 
    749749 
    750 static this() 
     750shared static this() 
    751751{ 
    752752    if (hasCPUID()) { 
  • trunk/src/core/sync/mutex.d

    r214 r238  
    181181    version( Posix ) 
    182182    { 
    183         static this() 
     183        shared static this() 
    184184        { 
    185185            int rc = pthread_mutexattr_init( &sm_attr ); 
     
    191191 
    192192 
    193         static ~this() 
     193        shared static ~this() 
    194194        { 
    195195            int rc = pthread_mutexattr_destroy( &sm_attr ); 
  • trunk/src/core/thread.d

    r233 r238  
    895895     * the process. 
    896896     */ 
    897     static const int PRIORITY_MIN; 
     897    __gshared const int PRIORITY_MIN; 
    898898 
    899899 
     
    904904     * the process. 
    905905     */ 
    906     static const int PRIORITY_MAX; 
     906    __gshared const int PRIORITY_MAX; 
    907907 
    908908 
     
    11621162     * initialization occurs within thread_init(). 
    11631163     */ 
    1164     static this() 
     1164    shared static this() 
    11651165    { 
    11661166        version( Windows ) 
     
    17751775 * Performs intermediate shutdown of the thread module. 
    17761776 */ 
    1777 static ~this() 
     1777shared static ~this() 
    17781778{ 
    17791779    // NOTE: The functionality related to garbage collection must be minimally 
     
    24082408    } 
    24092409 
    2410     const size_t PAGESIZE; 
     2410    __gshared const size_t PAGESIZE; 
    24112411} 
    24122412 
    24132413 
    2414 static this() 
     2414shared static this() 
    24152415{ 
    24162416    static if( __traits( compiles, GetSystemInfo ) ) 
     
    29142914 
    29152915 
    2916     static this() 
     2916    shared static this() 
    29172917    { 
    29182918        version( Windows ) 
  • trunk/src/rt/cover.d

    r220 r238  
    115115 
    116116 
    117 static ~this() 
     117shared static ~this() 
    118118{ 
    119119    const NUMLINES = 16384 - 1; 
  • trunk/src/rt/trace.d

    r214 r238  
    227227// Initialize and terminate. 
    228228 
    229 static this() 
     229shared static this() 
    230230{ 
    231231    trace_init(); 
    232232} 
    233233 
    234 static ~this() 
     234shared static ~this() 
    235235{ 
    236236    trace_term();