Skip to content

Commit

Permalink
Merge pull request #10113 from stiopaa1/msg_asyncmess_moveC_handle_reap
Browse files Browse the repository at this point in the history
msg/AsyncMessenger: move C_handle_reap class to cc

Reviewed-by: Haomai Wang <haomai@xsky.com>
  • Loading branch information
yuyuyu101 committed Jul 13, 2016
2 parents 1143652 + 5b15361 commit 248637b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 10 additions & 0 deletions src/msg/async/AsyncMessenger.cc
Expand Up @@ -495,6 +495,16 @@ void WorkerPool::barrier()
ldout(cct, 10) << __func__ << " end." << dendl;
}

class C_handle_reap : public EventCallback {
AsyncMessenger *msgr;

public:
explicit C_handle_reap(AsyncMessenger *m): msgr(m) {}
void do_request(int id) {
// judge whether is a time event
msgr->reap_dead();
}
};

/*******************
* AsyncMessenger
Expand Down
10 changes: 0 additions & 10 deletions src/msg/async/AsyncMessenger.h
Expand Up @@ -282,16 +282,6 @@ class AsyncMessenger : public SimplePolicyMessenger {
friend class Processor;
DispatchQueue dispatch_queue;

class C_handle_reap : public EventCallback {
AsyncMessenger *msgr;

public:
explicit C_handle_reap(AsyncMessenger *m): msgr(m) {}
void do_request(int id) {
// judge whether is a time event
msgr->reap_dead();
}
};
// the worker run messenger's cron jobs
Worker *local_worker;

Expand Down

0 comments on commit 248637b

Please sign in to comment.