@@ -35,10 +35,11 @@ #ifdef OF_HAVE_THREADS OFMutex *timersQueueLock; #endif OFStreamObserver *streamObserver; OFMutableDictionary *readQueues; + BOOL running; } /*! * @brief Returns the main run loop. * @@ -99,6 +100,12 @@ /*! * @brief Starts the run loop. */ - (void)run; + +/*! + * @brief Stops the run loop. If there is still an operation being executed, it + * is finished before the run loop stops. + */ +- (void)stop; @end