21 OF_ASSUME_NONNULL_BEGIN
26 #ifdef OF_HAVE_THREADS
39 #ifdef OF_HAVE_OPTIONAL_PROTOCOLS
56 - (void)objectIsReadyForReading: (
id)object;
63 - (void)objectIsReadyForWriting: (
id)object;
119 id <OFKernelEventObserverDelegate> _delegate;
123 of_socket_t _cancelFD[2];
124 struct sockaddr_in _cancelAddr;
126 #ifdef OF_HAVE_THREADS
131 #ifdef OF_HAVE_PROPERTIES
132 @property OF_NULLABLE_PROPERTY (assign)
141 + (instancetype)observer;
219 - (void)observeUntilDate: (
OFDate*)date;
231 @interface OFObject (OFKernelEventObserverDelegate)
235 OF_ASSUME_NONNULL_END
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
Definition: OFKernelEventObserver.h:73
A class for creating mutual exclusions.
Definition: OFMutex.h:29
A class for storing, accessing and comparing dates.
Definition: OFDate.h:30
The root class for all other classes inside ObjFW.
Definition: OFObject.h:364
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:46
A class for storing arbitrary data in an array.
Definition: OFDataArray.h:37
int fileDescriptorForWriting()
Returns the file descriptor for writing that should be checked by the OFKernelEventObserver.
int fileDescriptorForReading()
Returns the file descriptor for reading that should be checked by the OFKernelEventObserver.
An abstract class for storing and changing objects in a dictionary.
Definition: OFMutableDictionary.h:47
A class that can observe multiple kernel events (e.g. streams being ready to read) at once...
Definition: OFKernelEventObserver.h:111
This protocol is implemented by classes which can be observed for readiness for writing by OFKernelEv...
Definition: OFKernelEventObserver.h:91
A protocol that needs to be implemented by delegates for OFKernelEventObserver.
Definition: OFKernelEventObserver.h:38
double of_time_interval_t
A time interval in seconds.
Definition: OFObject.h:90