librb: rb_run_event -> rb_run_one_event
This is to avoid confusion with rb_event_run, which does something else.
This commit is contained in:
parent
f8ef4b8dd6
commit
0e651b1441
7 changed files with 8 additions and 8 deletions
|
@ -43,7 +43,7 @@ void rb_event_find_delete(EVH * func, void *);
|
||||||
void rb_event_update(struct ev_entry *, time_t freq);
|
void rb_event_update(struct ev_entry *, time_t freq);
|
||||||
void rb_set_back_events(time_t);
|
void rb_set_back_events(time_t);
|
||||||
void rb_dump_events(void (*func) (char *, void *), void *ptr);
|
void rb_dump_events(void (*func) (char *, void *), void *ptr);
|
||||||
void rb_run_event(struct ev_entry *);
|
void rb_run_one_event(struct ev_entry *);
|
||||||
time_t rb_event_next(void);
|
time_t rb_event_next(void);
|
||||||
|
|
||||||
#endif /* INCLUDED_event_h */
|
#endif /* INCLUDED_event_h */
|
||||||
|
|
|
@ -366,7 +366,7 @@ signalfd_handler(rb_fde_t *F, void *data)
|
||||||
#endif
|
#endif
|
||||||
if(ev == NULL)
|
if(ev == NULL)
|
||||||
continue;
|
continue;
|
||||||
rb_run_event(ev);
|
rb_run_one_event(ev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -455,7 +455,7 @@ rb_read_timerfd(rb_fde_t *F, void *data)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
rb_setselect(F, RB_SELECT_READ, rb_read_timerfd, event);
|
rb_setselect(F, RB_SELECT_READ, rb_read_timerfd, event);
|
||||||
rb_run_event(event);
|
rb_run_one_event(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -194,7 +194,7 @@ rb_event_addish(const char *name, EVH * func, void *arg, time_t delta_ish)
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
rb_run_event(struct ev_entry *ev)
|
rb_run_one_event(struct ev_entry *ev)
|
||||||
{
|
{
|
||||||
rb_strlcpy(last_event_ran, ev->name, sizeof(last_event_ran));
|
rb_strlcpy(last_event_ran, ev->name, sizeof(last_event_ran));
|
||||||
ev->func(ev->arg);
|
ev->func(ev->arg);
|
||||||
|
|
|
@ -143,7 +143,7 @@ rb_rawbuf_get
|
||||||
rb_rawbuf_length
|
rb_rawbuf_length
|
||||||
rb_read
|
rb_read
|
||||||
rb_recv_fd_buf
|
rb_recv_fd_buf
|
||||||
rb_run_event
|
rb_run_one_event
|
||||||
rb_select
|
rb_select
|
||||||
rb_send_fd_buf
|
rb_send_fd_buf
|
||||||
rb_set_buffers
|
rb_set_buffers
|
||||||
|
|
|
@ -277,7 +277,7 @@ rb_select_kqueue(long delay)
|
||||||
break;
|
break;
|
||||||
#if defined(EVFILT_TIMER)
|
#if defined(EVFILT_TIMER)
|
||||||
case EVFILT_TIMER:
|
case EVFILT_TIMER:
|
||||||
rb_run_event(kqout[i].udata);
|
rb_run_one_event(kqout[i].udata);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -162,7 +162,7 @@ rb_select_ports(long delay)
|
||||||
} else if(pelst[i].portev_source == PORT_SOURCE_TIMER)
|
} else if(pelst[i].portev_source == PORT_SOURCE_TIMER)
|
||||||
{
|
{
|
||||||
ev = (struct ev_entry *)pelst[i].portev_user;
|
ev = (struct ev_entry *)pelst[i].portev_user;
|
||||||
rb_run_event(ev);
|
rb_run_one_event(ev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return RB_OK;
|
return RB_OK;
|
||||||
|
|
|
@ -270,7 +270,7 @@ rb_select_sigio(long delay)
|
||||||
struct ev_entry *ev = (struct ev_entry *)si.si_ptr;
|
struct ev_entry *ev = (struct ev_entry *)si.si_ptr;
|
||||||
if(ev == NULL)
|
if(ev == NULL)
|
||||||
continue;
|
continue;
|
||||||
rb_run_event(ev);
|
rb_run_one_event(ev);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue