21 OF_ASSUME_NONNULL_BEGIN
25 #ifdef OF_HAVE_THREADS 53 - (void)objectIsReadyForReading: (
id)object;
60 - (void)objectIsReadyForWriting: (
id)object;
78 - (int)fileDescriptorForReading;
96 - (int)fileDescriptorForWriting;
114 id <OFKernelEventObserverDelegate> _Nullable _delegate;
118 of_socket_t _cancelFD[2];
119 struct sockaddr_in _cancelAddr;
121 #ifdef OF_HAVE_THREADS 132 id <OFKernelEventObserverDelegate> delegate;
203 - (void)observeUntilDate: (
OFDate *)date;
215 OF_ASSUME_NONNULL_END
nonatomic
Definition: OFKernelEventObserver.h:131
void cancel()
Cancels the currently blocking observe call.
Definition: OFKernelEventObserver.m:417
A protocol that needs to be implemented by delegates for OFKernelEventObserver.
Definition: OFKernelEventObserver.h:28
instancetype observer()
Creates a new OFKernelEventObserver.
Definition: OFKernelEventObserver.m:78
void observe()
Observes all objects and blocks until an event happens on an object.
Definition: OFKernelEventObserver.m:402
A class for creating mutual exclusions.
Definition: OFMutex.h:29
double of_time_interval_t
A time interval in seconds.
Definition: OFObject.h:91
The root class for all other classes inside ObjFW.
Definition: OFObject.h:379
A class for storing, accessing and comparing dates.
Definition: OFDate.h:30
A class that can observe multiple kernel events (e.g. streams being ready to read) at once...
Definition: OFKernelEventObserver.h:108
This protocol is implemented by classes which can be observed for readiness for writing by OFKernelEv...
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:40
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
A class for storing and manipulating arbitrary data in an array.
Definition: OFMutableData.h:29