sbRunnable Class Reference

#include <sbThreadUtils.h>

Inheritance diagram for sbRunnable:
Collaboration diagram for sbRunnable:

Public Member Functions

 sbRunnable (const char *aName)
PRBool Wait (PRIntervalTime aTimeout)

Detailed Description

A subclass of nsRunnable that can be waited on when synchronous operation is needed.

Definition at line 739 of file sbThreadUtils.h.

Constructor & Destructor Documentation

sbRunnable::sbRunnable ( const char *  aName)

Definition at line 742 of file sbThreadUtils.h.

Member Function Documentation

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.

Here is the caller graph for this function:

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.

The documentation for this class was generated from the following files: