@@ -21,31 +21,31 @@ @class OFSortedList; @class OFTimer; @class OFMutableDictionary; -/** - * \brief A class providing a run loop for the application and its processes. +/*! + * @brief A class providing a run loop for the application and its processes. */ @interface OFRunLoop: OFObject { OFSortedList *timersQueue; OFStreamObserver *streamObserver; OFMutableDictionary *readQueues; } -/** - * \brief Returns the main run loop. +/*! + * @brief Returns the main run loop. * - * \return The main run loop + * @return The main run loop */ + (OFRunLoop*)mainRunLoop; -/** - * \brief Returns the run loop for the current thread. +/*! + * @brief Returns the run loop for the current thread. * - * \return The run loop for the current thread + * @return The run loop for the current thread */ + (OFRunLoop*)currentRunLoop; + (void)OF_setMainRunLoop; + (void)OF_addAsyncReadForStream: (OFStream*)stream @@ -79,17 +79,17 @@ block: (of_stream_async_read_line_block_t)block; + (void)OF_addAsyncAcceptForTCPSocket: (OFTCPSocket*)socket block: (of_tcpsocket_async_accept_block_t)block; #endif -/** - * \brief Adds an OFTimer to the run loop. +/*! + * @brief Adds an OFTimer to the run loop. * - * \param timer The timer to add + * @param timer The timer to add */ - (void)addTimer: (OFTimer*)timer; -/** - * \brief Starts the run loop. +/*! + * @brief Starts the run loop. */ - (void)run; @end