@@ -17,10 +17,12 @@ #import "OFObject.h" #import "OFList.h" #import "threading.h" +@class OFDate; + /** * \brief A class for Thread Local Storage keys. */ @interface OFTLSKey: OFObject { @@ -114,10 +116,15 @@ /** * Suspends execution of the current thread for N milliseconds. */ + (void)sleepForNMilliseconds: (unsigned int)msecs; +/** + * Suspends execution of the current thread until the specified date. + */ ++ (void)sleepUntilDate: (OFDate*)date; + /** * Yields a processor voluntarily and moves the thread at the end of the queue * for its priority. */ + (void)yield;