Changeset 4:d061ad3be7fd in xplcommon for src/xplcommon/posix/Waitable.cc
- Timestamp:
- 12/27/12 18:52:39 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/posix/Waitable.cc
r3 r4 34 34 #include "Waiter.h" 35 35 36 #include <fcntl.h> 37 36 38 //------------------------------------------------------------------------------ 37 39 38 40 using xplcommon::posix::Waitable; 41 42 //------------------------------------------------------------------------------ 43 44 void Waitable::setNonBlocking(int fd) 45 { 46 fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK); 47 } 39 48 40 49 //------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.