#include <multicmd.h>
Public Member Functions | |
_MultiCommandJob (BSONObj &_cmd, Target &_d) | |
Public Attributes | |
BSONObj & | cmd |
Target & | d |
Private Member Functions | |
string | name () const |
void | run () |
Definition at line 35 of file multicmd.h.
Definition at line 39 of file multicmd.h.
string mongo::_MultiCommandJob::name | ( | ) | const [inline, private, virtual] |
Implements mongo::BackgroundJob.
Definition at line 42 of file multicmd.h.
void mongo::_MultiCommandJob::run | ( | ) | [inline, private, virtual] |
define this to do your work. after this returns, state is set to done. after this returns, deleted if deleteSelf true.
NOTE: if run() throws, the exception will be caught within 'this' object and will ultimately lead to the BackgroundJob's thread being finished, as if run() returned.
Implements mongo::BackgroundJob.
Definition at line 43 of file multicmd.h.
Definition at line 37 of file multicmd.h.
Definition at line 38 of file multicmd.h.