Show
Ignore:
Timestamp:
08/13/09 03:15:54 (4 years ago)
Author:
saturday06
Message:

rftgyuikyyjh

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/objective-cplusplus/i3/trunk/src/mil/include/mil/StaticData.cpp

    r34853 r34863  
    5050AutoJoiner auto_joiners[MIL_MAX_THREADS]; 
    5151atomic<int> auto_join_native_id_once; 
    52 thread::native_id_t auto_join_native_id = 0; 
     52atomic<thread::native_id_t> auto_join_native_id; 
    5353 
    5454static void check_id() { 
    5555    if (!auto_join_native_id_once.load()) { 
    5656        auto_join_native_id_once.store(1); 
    57         auto_join_native_id = thread::get_native_id(); 
     57        auto_join_native_id.store(thread::get_native_id()); 
    5858    } 
    59     if (auto_join_native_id != thread::get_native_id()) { 
    60         halt << "native thread id is not match [" << auto_join_native_id << "] != [" << thread::get_native_id() << "]"; 
     59    if (auto_join_native_id.load() != thread::get_native_id()) { 
     60        halt << "native thread id is not match [" << auto_join_native_id.load() << "] != [" << thread::get_native_id() << "]"; 
    6161    } 
    6262}