diff options
author | Antonin Kral <a.kral@bobek.cz> | 2011-03-17 00:07:52 +0100 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2011-03-17 00:07:52 +0100 |
commit | 98b8b639326ab4c89eed73739d9903993c4c8959 (patch) | |
tree | 0462df078bf740093774d033b75f0ea24a31fa97 /util/concurrency/msg.h | |
parent | f5d6e97ca8d2f3e7c4cdd5c9afbf8e756ef65bc2 (diff) | |
parent | 582fc32574a3b158c81e49cb00e6ae59205e66ba (diff) | |
download | mongodb-98b8b639326ab4c89eed73739d9903993c4c8959.tar.gz |
Merge commit 'upstream/1.8.0
Diffstat (limited to 'util/concurrency/msg.h')
-rw-r--r-- | util/concurrency/msg.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/concurrency/msg.h b/util/concurrency/msg.h index a5b07d3..f7c6788 100644 --- a/util/concurrency/msg.h +++ b/util/concurrency/msg.h @@ -21,14 +21,14 @@ #include <deque> #include "task.h" -namespace mongo { +namespace mongo { - namespace task { + namespace task { typedef boost::function<void()> lam; /** typical usage is: task::fork( new Server("threadname") ); */ - class Server : public Task { + class Server : public Task { public: /** send a message to the port */ void send(lam); @@ -47,7 +47,7 @@ namespace mongo { private: virtual bool initClient() { return true; } - virtual string name() { return _name; } + virtual string name() const { return _name; } void doWork(); deque<lam> d; boost::mutex m; |