@@ -50,11 +50,11 @@ OFKernelEventObserver *_kernelEventObserver; OFMutableDictionary *_readQueues; #elif defined(OF_HAVE_THREADS) OFCondition *_condition; #endif - volatile bool _running; + volatile bool _stop; } /*! * @brief Returns the main run loop. * @@ -79,13 +79,20 @@ /*! * @brief Starts the run loop. */ - (void)run; +/*! + * @brief Run the run loop until the specified deadline. + * + * @param deadline The date until which the run loop should run + */ +- (void)runUntilDate: (nullable OFDate*)deadline; + /*! * @brief Stops the run loop. If there is still an operation being executed, it * is finished before the run loop stops. */ - (void)stop; @end OF_ASSUME_NONNULL_END