Changeset 20:38521bf10e24 in xplcommon
- Timestamp:
- 12/30/12 16:45:26 (12 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 8 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/Failable.h
r14 r20 115 115 116 116 inline Failable::Failable() : 117 errorCode( NO_ERROR)117 errorCode(XPL_NO_ERROR) 118 118 { 119 119 } … … 123 123 inline bool Failable::failed() const 124 124 { 125 return errorCode!= NO_ERROR;125 return errorCode!=XPL_NO_ERROR; 126 126 } 127 127 … … 137 137 inline void Failable::repair() 138 138 { 139 errorCode = NO_ERROR;139 errorCode = XPL_NO_ERROR; 140 140 } 141 141 -
src/xplcommon/Thread.h
r7 r20 46 46 class Thread 47 47 { 48 public: 49 /** 50 * Sleep for the given number of milliseconds. 51 */ 52 static void sleep(unsigned millis); 53 48 54 public: 49 55 /** -
src/xplcommon/WaitableEvent.h
r17 r20 96 96 //------------------------------------------------------------------------------ 97 97 98 //#include "win32/WaitableEvent.h"98 #include "win32/WaitableEvent.h" 99 99 100 //namespace xplcommon { typedef win32::WaitableEvent WaitableEvent; }100 namespace xplcommon { typedef win32::WaitableEvent WaitableEvent; } 101 101 102 102 //------------------------------------------------------------------------------ -
src/xplcommon/Waiter.h
r17 r20 83 83 //------------------------------------------------------------------------------ 84 84 85 //#include "win32/Waiter.h"85 #include "win32/Waiter.h" 86 86 87 //namespace xplcommon { typedef win32::Waiter Waiter; }87 namespace xplcommon { typedef win32::Waiter Waiter; } 88 88 89 89 //------------------------------------------------------------------------------ -
src/xplcommon/types.h
r6 r20 49 49 50 50 typedef DWORD errorCode_t; 51 static const DWORD NO_ERROR = 0;51 static const DWORD XPL_NO_ERROR = 0; 52 52 53 53 //------------------------------------------------------------------------------ … … 58 58 59 59 typedef int errorCode_t; 60 static const int NO_ERROR = 0;60 static const int XPL_NO_ERROR = 0; 61 61 62 62 //------------------------------------------------------------------------------ -
src/xplcommon/win32/Makefile.am
r3 r20 2 2 3 3 libxplcommon_win32_la_SOURCES = \ 4 Thread.cc 4 Thread.cc \ 5 Event.cc \ 6 Overlapped.cc \ 7 Waiter.cc \ 8 WaitableEvent.cc 5 9 6 10 include_xplcommon_win32dir=$(includedir)/xplcommon/win32 7 11 include_xplcommon_win32_HEADERS=\ 8 Thread.h 12 Thread.h \ 13 Event.h \ 14 Overlapped.h \ 15 Waiter.h \ 16 WaitableEvent.h -
src/xplcommon/win32/Thread.h
r3 r20 45 45 class Thread 46 46 { 47 public: 48 /** 49 * Sleep for the given number of milliseconds. 50 */ 51 static void sleep(unsigned millis); 52 47 53 private: 48 54 /** … … 84 90 //------------------------------------------------------------------------------ 85 91 92 inline void Thread::sleep(unsigned millis) 93 { 94 Sleep(millis); 95 } 96 97 //------------------------------------------------------------------------------ 98 86 99 inline Thread::~Thread() 87 100 { -
test/Makefile.am
r18 r20 4 4 5 5 testevent_SOURCES=testevent.cc 6 testevent_LDADD=../src/xplcommon/libxplcommon.la -lpthread 6 testevent_LDADD=../src/xplcommon/libxplcommon.la 7 if TARGET_API_POSIX 8 testevent_LDADD+=-lpthread 9 endif 10 if TARGET_API_WIN32 11 testevent_LDFLAGS=-static-libgcc -static-libstdc++ 12 endif 7 13 8 14 testlocsock_SOURCES=testlocsock.cc 9 testlocsock_LDADD=../src/xplcommon/libxplcommon.la -lpthread 15 testlocsock_LDADD=../src/xplcommon/libxplcommon.la 16 if TARGET_API_POSIX 17 testlocsock_LDADD+=-lpthread 18 endif 19 if TARGET_API_WIN32 20 testlocsock_LDFLAGS=-static-libgcc -static-libstdc++ 21 endif
Note:
See TracChangeset
for help on using the changeset viewer.