0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-01 19:22:53 +01:00

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:
Elizabeth Myers 2016-04-02 23:38:28 -05:00
parent f8ef4b8dd6
commit 0e651b1441
7 changed files with 8 additions and 8 deletions

View file

@ -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 */

View file

@ -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);
} }

View file

@ -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);

View file

@ -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

View file

@ -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:

View file

@ -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;

View file

@ -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