Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 2110

Show
Ignore:
Timestamp:
04/23/07 15:42:11 (2 years ago)
Author:
sean
Message:

Fix for ticket #430.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/common/tango/core/Thread.d

    r2108 r2110  
    181181            } 
    182182 
    183             pthread_cleanup cleanup; 
     183            // NOTE: Using void to skip the initialization here relies on 
     184            //       knowledge of how pthread_cleanup is implemented.  It may 
     185            //       not be appropriate for all platforms.  However, it does 
     186            //       avoid the need to link the pthread module.  If any 
     187            //       implementation actually requires default initialization 
     188            //       then pthread_cleanup should be restructured to maintain 
     189            //       the current lack of a link dependency. 
     190            pthread_cleanup cleanup = void; 
    184191            cleanup.push( &thread_cleanupHandler, cast(void*) obj ); 
    185192