@@ -14,12 +14,12 @@ * file. */ #import "OFObject.h" -/** - * \brief A pool that keeps track of objects to release. +/*! + * @brief A pool that keeps track of objects to release. * * The OFAutoreleasePool class is a class that keeps track of objects that will * be released when the autorelease pool is released. * * Every thread has its own stack of autorelease pools. @@ -28,21 +28,21 @@ { void *pool; BOOL ignoreRelease; } -/** - * \brief Adds an object to the autorelease pool at the top of the +/*! + * @brief Adds an object to the autorelease pool at the top of the * thread-specific autorelease pool stack. * - * \param object The object to add to the autorelease pool - * \return The object + * @param object The object to add to the autorelease pool + * @return The object */ + (id)addObject: (id)object; -/** - * \brief Releases all objects in the autorelease pool. +/*! + * @brief Releases all objects in the autorelease pool. * * This does not free the memory allocated to store pointers to the objects in * the pool, so reusing the pool does not allocate any memory until the previous * number of objects is exceeded. It behaves this way to optimize loops that * always work with the same or similar number of objects and call relaseObjects @@ -54,17 +54,17 @@ * have been added to the pool that should be released before the next iteration * of a loop, which adds objects again. Thus, it is usually a clean up call. */ - (void)releaseObjects; -/** - * \brief Releases all objects in the autorelease pool and deallocates the pool. +/*! + * @brief Releases all objects in the autorelease pool and deallocates the pool. */ - (void)release; -/** - * \brief Releases all objects in the autorelease pool and deallocates the pool. +/*! + * @brief Releases all objects in the autorelease pool and deallocates the pool. */ - (void)drain; @end #ifdef __cplusplus