summaryrefslogtreecommitdiffstats
path: root/src/msg/async/Event.h
diff options
context:
space:
mode:
authorHaomai Wang <haomai@xsky.com>2016-03-08 07:31:19 +0100
committerHaomai Wang <haomai@xsky.com>2016-06-29 06:14:04 +0200
commitba470cea09bcc9b57e7647dc0a24c80bf0e54a5e (patch)
tree2667fb61f3c6f0826ee0c0f80798614ee7f5a4c4 /src/msg/async/Event.h
parentEvent: use local_center instead of pthread id (diff)
downloadceph-ba470cea09bcc9b57e7647dc0a24c80bf0e54a5e.tar.xz
ceph-ba470cea09bcc9b57e7647dc0a24c80bf0e54a5e.zip
Event: remove time_lock which is no need
Signed-off-by: Haomai Wang <haomai@xsky.com>
Diffstat (limited to '')
-rw-r--r--src/msg/async/Event.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/msg/async/Event.h b/src/msg/async/Event.h
index b5fe2171f6e..9cf1a920dee 100644
--- a/src/msg/async/Event.h
+++ b/src/msg/async/Event.h
@@ -107,7 +107,7 @@ class EventCenter {
CephContext *cct;
int nevent;
// Used only to external event
- Mutex external_lock, file_lock, time_lock;
+ Mutex external_lock, file_lock;
atomic_t external_num_events;
deque<EventCallbackRef> external_events;
vector<FileEvent> file_events;
@@ -133,7 +133,6 @@ class EventCenter {
cct(c), nevent(0),
external_lock("AsyncMessenger::external_lock"),
file_lock("AsyncMessenger::file_lock"),
- time_lock("AsyncMessenger::time_lock"),
external_num_events(0),
driver(NULL), time_event_next_id(1),
notify_receive_fd(-1), notify_send_fd(-1), net(c),