Changeset 29:54c2d451f8a0 in xplcommon for src
- Timestamp:
- 01/02/13 11:37:15 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/xplcommon
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/Buffer.h
r5 r29 96 96 97 97 /** 98 * Get whether the buffer is empty or not. 99 */ 100 bool isEmpty() const; 101 102 /** 98 103 * Get the available capacity in the buffer. 99 104 */ … … 172 177 { 173 178 return length; 179 } 180 181 //------------------------------------------------------------------------------ 182 183 inline bool Buffer::isEmpty() const 184 { 185 return length==0; 174 186 } 175 187 -
src/xplcommon/BufferedStream.h
r21 r29 93 93 //------------------------------------------------------------------------------ 94 94 95 //#include "win32/BufferedStream.h"95 #include "win32/BufferedStream.h" 96 96 97 //namespace xplcommon { typedef win32::BufferedStream BufferedStream; }97 namespace xplcommon { typedef win32::BufferedStream BufferedStream; } 98 98 99 99 //------------------------------------------------------------------------------ -
src/xplcommon/Makefile.am
r27 r29 10 10 11 11 libxplcommon_la_SOURCES= \ 12 PseudoRandom.cc \ 12 13 Buffer.cc \ 13 PseudoRandom.cc14 BlockingStream.cc 14 15 15 16 if TARGET_API_POSIX … … 25 26 config.h \ 26 27 types.h \ 28 PseudoRandom.h \ 27 29 Failable.h \ 28 30 Thread.h \ … … 38 40 LocalConnector.h \ 39 41 LocalClientSocket.h \ 40 PseudoRandom.h42 BlockingStream.h -
src/xplcommon/posix/ReadingBuffer.cc
r21 r29 63 63 stream.events &= ~POLLIN; 64 64 size_t added = addLength(result); 65 assert( added==result);66 assert( getLength()==result);65 assert(static_cast<ssize_t>(added)==result); 66 assert(static_cast<ssize_t>(getLength())==result); 67 67 } 68 68 return result>=0; -
src/xplcommon/posix/Waiter.cc
r14 r29 49 49 { 50 50 Waitable* waitable = i->second; 51 if (waitable->ready()) return true; 51 if (waitable->ready()) { 52 return true; 53 } 52 54 } 53 55 return false;
Note:
See TracChangeset
for help on using the changeset viewer.