Classes | |
struct | SelectObject |
Typedefs | |
typedef Array< SelectObject > | SelectObjectArray |
Functions | |
int | selectRWEpoll (SelectObjectArray &selarray, UInt32 ms) |
int | selectRWPoll (SelectObjectArray &selarray, UInt32 ms) |
int | selectRWSelect (SelectObjectArray &selarray, UInt32 ms) |
int | selectRW (SelectObjectArray &selarray, UInt32 ms=INFINITE_TIMEOUT) |
Select returns as soon as input or output is available on any of the Select_t objects that are in given array or the timeout has passed. | |
int | select (const SelectTypeArray &selarray, UInt32 ms=INFINITE_TIMEOUT) |
Select returns as soon as input is available on any of Select_t objects that are in given array. | |
Variables | |
const int | SELECT_TIMEOUT = -2 |
The value returned from select when the timeout value has expired. | |
const int | SELECT_ERROR = -1 |
The value returned from select when any error occurs other than timeout. | |
const int | SELECT_INTERRUPTED = -3 |
The value returned from select when select is interrupted by a signal. | |
const int | SELECT_NOT_IMPLEMENTED = -4 |
Used internally, but listed here to prevent conflicts. | |
const UInt32 | INFINITE_TIMEOUT = ~0U |
Value that means infinite timeout. |
|
Definition at line 112 of file OW_Select.hpp. |
|
Select returns as soon as input is available on any of Select_t objects that are in given array.
Definition at line 538 of file OW_Select.cpp. References i, OW_NAMESPACE::Array< T >::push_back(), OW_NAMESPACE::Array< T >::reserve(), and OW_NAMESPACE::Array< T >::size(). Referenced by OW_NAMESPACE::SelectEngine::go(), OW_NAMESPACE::HTTPSvrConnection::run(), selectRWSelect(), and OW_NAMESPACE::ThreadImpl::sleep(). |
|
Select returns as soon as input or output is available on any of the Select_t objects that are in given array or the timeout has passed.
Definition at line 515 of file OW_Select.cpp. References OW_ASSERT, SELECT_NOT_IMPLEMENTED, selectRWEpoll(), selectRWPoll(), and selectRWSelect(). Referenced by OW_NAMESPACE::SocketUtils::waitForIO(). |
|
Definition at line 168 of file OW_Select.cpp. References OW_NAMESPACE::FileSystem::close(), i, OW_ASSERT, s, SELECT_ERROR, SELECT_NOT_IMPLEMENTED, and OW_NAMESPACE::Array< T >::size(). Referenced by selectRW(). |
|
Definition at line 277 of file OW_Select.cpp. References i, OW_NAMESPACE::Exec::INFINITE_TIMEOUT, OW_ASSERT, s, OW_NAMESPACE::Array< T >::size(), and OW_NAMESPACE::ThreadImpl::testCancel(). Referenced by selectRW(). |
|
Definition at line 388 of file OW_Select.cpp. References i, OW_NAMESPACE::Exec::INFINITE_TIMEOUT, OW_ASSERT, s, select(), SELECT_ERROR, OW_NAMESPACE::Array< T >::size(), and OW_NAMESPACE::ThreadImpl::testCancel(). Referenced by selectRW(). |
|
Value that means infinite timeout.
Definition at line 71 of file OW_Select.hpp. |
|
The value returned from select when any error occurs other than timeout.
Definition at line 59 of file OW_Select.hpp. Referenced by OW_NAMESPACE::SelectEngine::go(), OW_NAMESPACE::HTTPSvrConnection::run(), selectRWEpoll(), and selectRWSelect(). |
|
The value returned from select when select is interrupted by a signal.
Definition at line 63 of file OW_Select.hpp. Referenced by OW_NAMESPACE::SelectEngine::go(), and OW_NAMESPACE::HTTPSvrConnection::run(). |
|
Used internally, but listed here to prevent conflicts.
Definition at line 67 of file OW_Select.hpp. Referenced by selectRW(), and selectRWEpoll(). |
|
The value returned from select when the timeout value has expired.
Definition at line 55 of file OW_Select.hpp. Referenced by OW_NAMESPACE::SelectEngine::go(), OW_NAMESPACE::HTTPSvrConnection::run(), and OW_NAMESPACE::SocketUtils::waitForIO(). |