Skip to content

Commit

Permalink
msg/async:change EventCenter::process_events(int timeout_microseconds…
Browse files Browse the repository at this point in the history
…) to EventCenter::process_events(unsigned timeout_microseconds)

Signed-off-by: shangfufei <shangfufei@inspur.com>
  • Loading branch information
shangfufei committed Feb 27, 2018
1 parent 9765eb7 commit 7705306
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/msg/async/Event.cc
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ int EventCenter::process_time_events()
return processed;
}

int EventCenter::process_events(int timeout_microseconds, ceph::timespan *working_dur)
int EventCenter::process_events(unsigned timeout_microseconds, ceph::timespan *working_dur)
{
struct timeval tv;
int numevents;
Expand Down
2 changes: 1 addition & 1 deletion src/msg/async/Event.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class EventCenter {
uint64_t create_time_event(uint64_t milliseconds, EventCallbackRef ctxt);
void delete_file_event(int fd, int mask);
void delete_time_event(uint64_t id);
int process_events(int timeout_microseconds, ceph::timespan *working_dur = nullptr);
int process_events(unsigned timeout_microseconds, ceph::timespan *working_dur = nullptr);
void wakeup();

// Used by external thread
Expand Down
2 changes: 1 addition & 1 deletion src/msg/async/Stack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ std::function<void ()> NetworkStack::add_thread(unsigned i)
char tp_name[16];
sprintf(tp_name, "msgr-worker-%u", w->id);
ceph_pthread_setname(pthread_self(), tp_name);
const uint64_t EventMaxWaitUs = 30000000;
const unsigned EventMaxWaitUs = 30000000;
w->center.set_owner();
ldout(cct, 10) << __func__ << " starting" << dendl;
w->initialize();
Expand Down

0 comments on commit 7705306

Please sign in to comment.