10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
-
-
+
|
* Alternatively, it may be distributed under the terms of the GNU General
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "OFObject.h"
#ifdef OF_HAVE_SOCKETS
# import "socket.h"
# import "OFSocket.h"
#endif
#ifdef OF_AMIGAOS
# include <exec/types.h>
# include <exec/tasks.h>
#endif
|
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
-
+
|
id <OFKernelEventObserverDelegate> _Nullable _delegate;
#if defined(OF_AMIGAOS)
struct Task *_waitingTask;
ULONG _cancelSignal;
#elif defined(OF_HAVE_PIPE)
int _cancelFD[2];
#else
of_socket_t _cancelFD[2];
OFSocketHandle _cancelFD[2];
struct sockaddr_in _cancelAddr;
#endif
#ifdef OF_AMIGAOS
ULONG _execSignalMask;
#endif
OF_RESERVE_IVARS(OFKernelEventObserver, 4)
}
|
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
|
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
|
-
+
|
/**
* @brief Observes all objects until an event happens on an object or the
* timeout is reached.
*
* @param timeInterval The time to wait for an event, in seconds
*/
- (void)observeForTimeInterval: (of_time_interval_t)timeInterval;
- (void)observeForTimeInterval: (OFTimeInterval)timeInterval;
/**
* @brief Observes all objects until an event happens on an object or the
* specified date is reached.
*
* @param date The until which to observe
*/
|