11 #ifndef __UT_NetFDSet__
12 #define __UT_NetFDSet__
71 uint8 myReadActivity:1, myWriteActivity: 1,
72 myErrorActivity: 1, myHangupActivity: 1;
107 int checkEvents(
int timeout_ms)
const;
114 bool isEmpty()
const;
149 static const size_t SIZEOF_IMPL = 1576;
150 char myImpl[SIZEOF_IMPL];
UT_NetFDEvent
Types of IO events that UT_NetFDSet can monitor a file descriptor for.
Abstracts the socket file descriptor set for select() or poll() calls.
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
SYS_NO_DISCARD_RESULT UT_NetFDMode mode() const
void setMode(UT_NetFDMode mode)
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
#define SYS_NO_DISCARD_RESULT
ImageBuf OIIO_API add(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
bool OIIO_UTIL_API contains(string_view a, string_view b)
Does 'a' contain the string 'b' within it?
static const int INDEFINITE_WAIT
Constants denoting special wait times for checkEvents()