Changeset 37803 for lang/objective-cplusplus/i3
- Timestamp:
- 06/05/10 13:59:51 (3 years ago)
- Location:
- lang/objective-cplusplus/i3/trunk/src/mil/include/mil
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-cplusplus/i3/trunk/src/mil/include/mil/Module.h
r37792 r37803 145 145 void destroy() { 146 146 break_loop_request = true; 147 semaphore.p(); 147 148 } 148 149 … … 151 152 exitNotifier.tls.flush(); 152 153 ExitEvent e; 153 post(e, exitNotifier, event_memory); 154 post(e, exitNotifier, event_memory); 154 155 } 155 156 -
lang/objective-cplusplus/i3/trunk/src/mil/include/mil/Pool.h
r37792 r37803 5 5 6 6 #define MIL_DEBUG_PRODUCER 0 7 #define MIL_MY_PRODUCER 08 #define MIL_MALLOC_PRODUCER 17 #define MIL_MY_PRODUCER 1 8 #define MIL_MALLOC_PRODUCER 0 9 9 #define MIL_TBB_PRODUCER 0 10 10 -
lang/objective-cplusplus/i3/trunk/src/mil/include/mil/gui-windows/GuiModule.h
r37802 r37803 182 182 break_loop_request = true; 183 183 break_loop_request_shared.store(true); 184 semaphore.p(); 184 185 185 186 // DestroyWindow -> dtor … … 212 213 213 214 for (;;) { 215 // dirty if-condition is for most expected branch !? 216 214 217 DWORD wakeup = MsgWaitForMultipleObjects(1, &(semaphore.handle), false, INFINITE, QS_ALLINPUT); 215 218 if (wakeup == WAIT_OBJECT_0) { 216 219 execute_front(); 217 //continue;218 220 } 219 221 220 222 MSG msg; 221 223 while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { 222 // dirty if-condition is for most expected branch223 224 if (msg.message != WM_QUIT) { 224 225 TranslateMessage(&msg); 225 226 DispatchMessage(&msg); 226 if (likely(!break_loop_request)) {227 continue;228 }229 227 } 230 return; 231 } 228 } 229 230 if (likely(!break_loop_request)) { 231 continue; 232 } 233 234 return; 232 235 } 233 236 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)