diff options
Diffstat (limited to 'client/parallel.h')
| -rw-r--r-- | client/parallel.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/client/parallel.h b/client/parallel.h index b60190aa3b0..603cfe7478b 100644 --- a/client/parallel.h +++ b/client/parallel.h @@ -274,7 +274,7 @@ namespace mongo { string _db; BSONObj _cmd; - boost::thread _thr; + scoped_ptr<boost::thread> _thr; BSONObj _res; bool _done; @@ -283,12 +283,9 @@ namespace mongo { friend class Future; }; - static void commandThread(); + static void commandThread( shared_ptr<CommandResult> res ); static shared_ptr<CommandResult> spawnCommand( const string& server , const string& db , const BSONObj& cmd ); - - private: - static shared_ptr<CommandResult> * _grab; }; |
