summaryrefslogtreecommitdiff
path: root/util/concurrency/msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/concurrency/msg.h')
-rw-r--r--util/concurrency/msg.h8
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;