#include <sbThreadUtils.h>
Public Member Functions | |
sbRunnable (const char *aName) | |
NS_IMETHOD | Run () |
PRBool | Wait (PRIntervalTime aTimeout) |
A subclass of nsRunnable that can be waited on when synchronous operation is needed.
Definition at line 739 of file sbThreadUtils.h.
|
inline |
Definition at line 742 of file sbThreadUtils.h.
NS_IMETHODIMP sbRunnable::Run | ( | ) |
nsIRunnable run method. Marks the operation as complete and signals all waiters. Subclasses must override this function to perform any real work, and then delegate to this function when done.
Definition at line 93 of file sbThreadUtils.cpp.
PRBool sbRunnable::Wait | ( | PRIntervalTime | aTimeout | ) |
Returns true if Run() completes before the timeout lapses, or false otherwise.
Definition at line 108 of file sbThreadUtils.cpp.