39#include "blocxx/BLOCXX_config.h"
47#if defined(BLOCXX_WIN32)
55 #ifdef BLOCXX_HAVE_SYS_EPOLL_H
56 #include <sys/epoll.h>
58 #if defined (BLOCXX_HAVE_SYS_POLL_H)
61 #if defined (BLOCXX_HAVE_SYS_SELECT_H)
62 #include <sys/select.h>
66#ifdef BLOCXX_HAVE_SYS_TIME_H
72#ifdef BLOCXX_HAVE_UNISTD_H
97#if defined(BLOCXX_WIN32)
188#ifdef BLOCXX_HAVE_SYS_EPOLL_H
246 }
while ((
ecc == 0) && !
timer.expired());
258 for(
int i = 0;
i <
ecc;
i++)
276#if defined (BLOCXX_HAVE_SYS_POLL_H)
320 }
while ((
rc == 0) && !
timer.expired());
361#if defined (BLOCXX_HAVE_SYS_SELECT_H)
419 }
while ((
rc == 0) && !
timer.expired());
504 curObj.waitForRead =
true;
514 for (
size_t i = 0;
i <
soa.size(); ++
i)
516 if (
soa[
i].readAvailable)
#define BLOCXX_ASSERT(CON)
BLOCXX_ASSERT works similar to the assert() macro, but instead of calling abort(),...
Array<> wraps std::vector<> in COWReference<> adding ref counting and copy on write capability.
void reserve(size_type n)
Ensure the capacity is at least the size of a given value.
The AutoPtrVec class provides a simple class for smart pointers to a dynamically allocated array of o...
PURPOSE: The AutoResource class template is an analog of std::auto_ptr for managing arbitrary resourc...
static void testCancel()
Test if this thread has been cancelled.
A timeout can be absolute, which means that it will happen at the specified DateTime.
static Timeout relative(float seconds)
A TimeoutTimer is used by an algorithm to determine when a timeout has expired.
int selectRWSelect(SelectObjectArray &selarray, const Timeout &timeout)
Array< SelectObject > SelectObjectArray
int selectRWPoll(SelectObjectArray &selarray, const Timeout &timeout)
int select(const SelectTypeArray &selarray, UInt32 ms)
Select returns as soon as input is available on any of Select_t objects that are in given array.
const int SELECT_TIMEOUT
The value returned from select when the timeout value has expired.
const int SELECT_NOT_IMPLEMENTED
Used internally, but listed here to prevent conflicts.
int selectRW(SelectObjectArray &selarray, UInt32 ms)
int selectRWEpoll(SelectObjectArray &selarray, const Timeout &timeout)
const int SELECT_ERROR
The value returned from select when any error occurs other than timeout.
bool operator==(const Array< T > &x, const Array< T > &y)
bool readAvailable
Ouput parameter. Will be set to true to indicate that s has become available for reading.