Signed-off-by: shangfufei <shangfufei@inspur.com>
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;
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
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();