Changeset 35:f8a5b321d0c3 in xplcommon for src/xplcommon/posix/Thread.h
- Timestamp:
- 01/03/13 06:57:15 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/posix/Thread.h
r4 r35 59 59 60 60 /** 61 * Indicate if the thread is detached or not. 62 */ 63 bool detached; 64 65 /** 61 66 * The posix thread handle. 62 67 */ … … 64 69 65 70 public: 71 /** 72 * Construct the thread 73 */ 74 Thread(bool detached = false); 75 66 76 /** 67 77 * Virtual destructor. … … 98 108 //------------------------------------------------------------------------------ 99 109 100 inline Thread::~Thread() 110 inline Thread::Thread(bool detached) : 111 detached(detached) 101 112 { 102 113 } … … 104 115 //------------------------------------------------------------------------------ 105 116 106 inline bool Thread::start()117 inline Thread::~Thread() 107 118 { 108 return pthread_create(&thread, 0, &threadFn, this)>=0;109 119 } 110 120
Note:
See TracChangeset
for help on using the changeset viewer.