Add kore_platform_schedule_write().

This commit is contained in:
Joris Vink 2015-12-09 21:29:44 +01:00
parent 3c0cc79e6b
commit d3332d5921
3 changed files with 13 additions and 0 deletions

View File

@ -427,6 +427,7 @@ void kore_platform_disable_accept(void);
int kore_platform_event_wait(u_int64_t);
void kore_platform_event_all(int, void *);
void kore_platform_schedule_read(int, void *);
void kore_platform_schedule_write(int, void *);
void kore_platform_event_schedule(int, int, int, void *);
void kore_platform_worker_setcpu(struct kore_worker *);

View File

@ -238,6 +238,12 @@ kore_platform_schedule_read(int fd, void *data)
kore_platform_event_schedule(fd, EVFILT_READ, EV_ADD, data);
}
void
kore_platform_schedule_write(int fd, void *data)
{
kore_platform_event_schedule(fd, EVFILT_WRITE, EV_ADD, data);
}
void
kore_platform_disable_read(int fd)
{

View File

@ -208,6 +208,12 @@ kore_platform_schedule_read(int fd, void *data)
kore_platform_event_schedule(fd, EPOLLIN, 0, data);
}
void
kore_platform_schedule_write(int fd, void *data)
{
kore_platform_event_schedule(fd, EPOLLOUT, 0, data);
}
void
kore_platform_disable_read(int fd)
{