threadpool-ms-io-poll.h 463 B

12345678910111213141516171819
  1. #pragma once
  2. #include "il2cpp-config.h"
  3. bool poll_init(int wakeup_pipe_fd);
  4. void poll_register_fd(int fd, int events, bool is_new);
  5. int poll_event_wait(void(*callback)(int fd, int events, void* user_data), void* user_data);
  6. void poll_remove_fd(int fd);
  7. /* Keep in sync with System.IOOperation in mcs/class/System/System/IOSelector.cs */
  8. enum Il2CppIOOperation
  9. {
  10. EVENT_IN = 1 << 0,
  11. EVENT_OUT = 1 << 1,
  12. EVENT_ERR = 1 << 2, /* not in managed */
  13. };