mirror of
https://github.com/jorisvink/kore
synced 2025-03-10 04:59:02 -04:00
Add kore_platform_schedule_write().
This commit is contained in:
parent
3c0cc79e6b
commit
d3332d5921
@ -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 *);
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user