Differences From Artifact [5b1f9ce35e]:
- File
src/OFKernelEventObserver.h
— part of check-in
[41ca862453]
at
2014-02-04 09:41:38
on branch trunk
— OFKernelEventObserver_kqueue: Ignore EBADF
Removed file descriptors were returned in the event list with EBADF if
the file descriptor has been closed before removing them. Interpreting
that as a read event caused problems, as the file descriptor could not
be mapped to an object anymore, thus the entry in the event list is
skipped now if there was a EBADF error. (user: js, size: 6542) [annotate] [blame] [check-ins using]
To Artifact [e0eb637de6]:
- File src/OFKernelEventObserver.h — part of check-in [246cfe0807] at 2014-02-18 18:50:30 on branch trunk — Documentation: Show correct imports (user: js, size: 6954) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
23 24 25 26 27 28 29 30 31 32 33 34 35 36 | @class OFDataArray; #ifdef OF_HAVE_THREADS @class OFMutex; #endif @class OFDate; /*! * @brief A protocol that needs to be implemented by delegates for * OFKernelEventObserver. */ @protocol OFKernelEventObserverDelegate <OFObject> #ifdef OF_HAVE_OPTIONAL_PROTOCOLS @optional #endif | > > > | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | @class OFDataArray; #ifdef OF_HAVE_THREADS @class OFMutex; #endif @class OFDate; /*! * @protocol OFKernelEventObserverDelegate * OFKernelEventObserver.h ObjFW/OFKernelEventObserver.h * * @brief A protocol that needs to be implemented by delegates for * OFKernelEventObserver. */ @protocol OFKernelEventObserverDelegate <OFObject> #ifdef OF_HAVE_OPTIONAL_PROTOCOLS @optional #endif |
︙ | ︙ | |||
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | * * @param object The object which did become ready for writing */ - (void)objectIsReadyForWriting: (id)object; @end /*! * @brief This protocol is implemented by classes which can be observed for * readiness for reading by OFKernelEventObserver. */ @protocol OFReadyForReadingObserving <OFObject> /*! * @brief Returns the file descriptor for reading that should be checked by the * OFKernelEventObserver. * * @return The file descriptor for reading that should be checked by the * OFKernelEventObserver */ - (int)fileDescriptorForReading; @end /*! * @brief This protocol is implemented by classes which can be observed for * readiness for writing by OFKernelEventObserver. */ @protocol OFReadyForWritingObserving <OFObject> /*! * @brief Returns the file descriptor for writing that should be checked by the * OFKernelEventObserver. * * @return The file descriptor for writing that should be checked by the * OFKernelEventObserver */ - (int)fileDescriptorForWriting; @end /*! * @brief A class that can observe multiple kernel events (e.g. streams being * ready to read) at once. * * @note Currently, Win32 can only observe TCP and UDP sockets! */ @interface OFKernelEventObserver: OFObject { | > > > > > > > > > | 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | * * @param object The object which did become ready for writing */ - (void)objectIsReadyForWriting: (id)object; @end /*! * @protocol OFReadyForReadingObserving * OFKernelEventObserver.h ObjFW/OFKernelEventObserver.h * * @brief This protocol is implemented by classes which can be observed for * readiness for reading by OFKernelEventObserver. */ @protocol OFReadyForReadingObserving <OFObject> /*! * @brief Returns the file descriptor for reading that should be checked by the * OFKernelEventObserver. * * @return The file descriptor for reading that should be checked by the * OFKernelEventObserver */ - (int)fileDescriptorForReading; @end /*! * @protocol OFReadyForWritingObserving * OFKernelEventObserver.h ObjFW/OFKernelEventObserver.h * * @brief This protocol is implemented by classes which can be observed for * readiness for writing by OFKernelEventObserver. */ @protocol OFReadyForWritingObserving <OFObject> /*! * @brief Returns the file descriptor for writing that should be checked by the * OFKernelEventObserver. * * @return The file descriptor for writing that should be checked by the * OFKernelEventObserver */ - (int)fileDescriptorForWriting; @end /*! * @class OFKernelEventObserver * OFKernelEventObserver.h ObjFW/OFKernelEventObserver.h * * @brief A class that can observe multiple kernel events (e.g. streams being * ready to read) at once. * * @note Currently, Win32 can only observe TCP and UDP sockets! */ @interface OFKernelEventObserver: OFObject { |
︙ | ︙ |