- Timestamp:
- 08/13/09 03:15:54 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-cplusplus/i3/trunk/src/mil/include/mil/StaticData.cpp
r34853 r34863 50 50 AutoJoiner auto_joiners[MIL_MAX_THREADS]; 51 51 atomic<int> auto_join_native_id_once; 52 thread::native_id_t auto_join_native_id = 0;52 atomic<thread::native_id_t> auto_join_native_id; 53 53 54 54 static void check_id() { 55 55 if (!auto_join_native_id_once.load()) { 56 56 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()); 58 58 } 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() << "]"; 61 61 } 62 62 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)