Differences From Artifact [b87bb931e4]:
- File
src/OFStreamObserver.h
— part of check-in
[47caef4f8a]
at
2011-09-20 18:40:54
on branch trunk
— OFStreamObserver improvements.
* Make it possible to close a stream before the add/remove queue has
been processed.
* The actual implementations don't need to handle OFStreams now, but
get the file descriptor instead.
* Use an OFMutex instead of @synchronized. (user: js, size: 5276) [annotate] [blame] [check-ins using]
To Artifact [429a39bc00]:
- File
src/OFStreamObserver.h
— part of check-in
[1edb3cb8c7]
at
2011-09-22 03:10:26
on branch trunk
— Don't use EV_RECEIPT.
EV_RECEIPT is not available on all systems implementing kqueue. (user: js, size: 5470) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
175 176 177 178 179 180 181 182 183 184 185 186 187 188 | * * \param timeout The time to wait for an event, in milliseconds * \return A boolean whether events occurred during the timeinterval */ - (BOOL)observeWithTimeout: (int)timeout; /// \cond internal - (void)_processQueue; - (BOOL)_processCache; /// \endcond @end @interface OFObject (OFStreamObserverDelegate) <OFStreamObserverDelegate> @end | > > > > | 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | * * \param timeout The time to wait for an event, in milliseconds * \return A boolean whether events occurred during the timeinterval */ - (BOOL)observeWithTimeout: (int)timeout; /// \cond internal - (void)_addFileDescriptorForReading: (int)fd; - (void)_addFileDescriptorForWriting: (int)fd; - (void)_removeFileDescriptorForReading: (int)fd; - (void)_removeFileDescriptorForWriting: (int)fd; - (void)_processQueue; - (BOOL)_processCache; /// \endcond @end @interface OFObject (OFStreamObserverDelegate) <OFStreamObserverDelegate> @end |