@@ -59,10 +59,19 @@ * @brief This callback is called when an object did get ready for writing. * * @param object The object which did become ready for writing */ - (void)objectIsReadyForWriting: (id)object; + +#ifdef OF_AMIGAOS +/*! + * @brief This callback is called when an Exec Signal was received. + * + * @note This is only available on AmigaOS! + */ +- (void)execSignalWasReceived: (ULONG)signalMask; +#endif @end /*! * @protocol OFReadyForReadingObserving * OFKernelEventObserver.h ObjFW/OFKernelEventObserver.h @@ -119,17 +128,29 @@ #ifdef OF_HAVE_THREADS OFMutex *_mutex; #endif OFMutableData *_queueActions; OFMutableArray *_queueObjects; +#ifdef OF_AMIGAOS + ULONG _execSignalMask; +#endif } /*! * @brief The delegate for the OFKernelEventObserver. */ @property OF_NULLABLE_PROPERTY (assign, nonatomic) id delegate; + +#ifdef OF_AMIGAOS +/*! + * @brief A mask of Exec Signals to wait for. + * + * @note This is only available on AmigaOS! + */ +@property (nonatomic) ULONG execSignalMask; +#endif /*! * @brief Creates a new OFKernelEventObserver. * * @return A new, autoreleased OFKernelEventObserver