#include <sbMainThreadMetadataProcessor.h>
Public Member Functions | |
NS_DECL_ISUPPORTS NS_DECL_NSITIMERCALLBACK | sbMainThreadMetadataProcessor (sbFileMetadataService *aManager) |
virtual | ~sbMainThreadMetadataProcessor () |
nsresult | Start () |
nsresult | Stop () |
Protected Attributes | |
nsRefPtr< sbFileMetadataService > | mJobManager |
nsTArray< nsRefPtr < sbMetadataJobItem > > | mCurrentJobItems |
nsCOMPtr< nsITimer > | mTimer |
PRBool | mRunning |
Used by sbFileMetadataService to process sbMetadataJobItem handlers on the main thread thread. Runs multiple handlers at once (if async) and polls them for completion.
Definition at line 55 of file sbMainThreadMetadataProcessor.h.
sbMainThreadMetadataProcessor::sbMainThreadMetadataProcessor | ( | sbFileMetadataService * | aManager | ) |
Definition at line 65 of file sbMainThreadMetadataProcessor.cpp.
|
virtual |
Definition at line 76 of file sbMainThreadMetadataProcessor.cpp.
nsresult sbMainThreadMetadataProcessor::Start | ( | ) |
Make sure that the timer is running. Note that this method should be called any time a new job is added, since the timer will shut down if it runs out of things to do.
Definition at line 85 of file sbMainThreadMetadataProcessor.cpp.
nsresult sbMainThreadMetadataProcessor::Stop | ( | ) |
Shut down the timer. Must be called from the main thread.
Definition at line 116 of file sbMainThreadMetadataProcessor.cpp.
|
protected |
Definition at line 85 of file sbMainThreadMetadataProcessor.h.
|
protected |
Definition at line 81 of file sbMainThreadMetadataProcessor.h.
|
protected |
Definition at line 91 of file sbMainThreadMetadataProcessor.h.
|
protected |
Definition at line 88 of file sbMainThreadMetadataProcessor.h.