Changeset 36213 for lang/objective-cplusplus/i3/trunk/src
- Timestamp:
- 12/20/09 16:53:40 (3 years ago)
- Location:
- lang/objective-cplusplus/i3/trunk/src/mil
- Files:
-
- 2 modified
-
include/mil/Thread.h (modified) (3 diffs)
-
src/test/Synchronize.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-cplusplus/i3/trunk/src/mil/include/mil/Thread.h
r36211 r36213 19 19 } 20 20 21 /*22 #if defined(MIL_OS_WINDOWS)23 #include "os-windows/Thread.h"24 #define MIL_DEFAULT_THREAD mil::thread::Windows25 //#elif defined(__CYGWIN__)26 //#include "os-windows/Thread.h"27 #elif defined(MIL_OS_UNIX)28 #include "os-unix/Thread.h"29 #define MIL_DEFAULT_THREAD mil::thread::Posix30 #else31 #error32 #endif33 */34 35 21 #if defined(MIL_GUI_WINDOWS) 36 #include "os-windows/Thread.h"37 22 #define MIL_DEFAULT_THREAD mil::thread::Windows 38 23 #elif defined(MIL_GUI_COCOA) 39 #include "os-unix/Thread.h"40 24 #define MIL_DEFAULT_THREAD mil::thread::Cocoa 41 25 #else … … 47 31 namespace mil { 48 32 namespace thread { 33 49 34 template <typename Child> 50 35 class Cocoa : public boost::noncopyable { … … 73 58 void* arg_ = (void*)this; 74 59 75 [thread setData:routine_ arg:arg_];76 [NSThread detachNewThreadSelector:@selector(start) toTarget:thread withObject:nil];60 [thread setData:routine_ arg:arg_]; 61 [NSThread detachNewThreadSelector:@selector(start) toTarget:thread withObject:nil]; 77 62 } 78 63 -
lang/objective-cplusplus/i3/trunk/src/mil/src/test/Synchronize.cpp
r35836 r36213 2 2 #include <mil/Mil.h> 3 3 #include <mil/Atomic.h> 4 #include <mil/Thread.h> 4 5 #include <mil/Synchronize.h> 5 #include <mil/Thread.h>6 6 #include <mil/Module.h> 7 7
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)