diff --git a/oio-unix.c b/oio-unix.c index e1277d83..422e75ac 100644 --- a/oio-unix.c +++ b/oio-unix.c @@ -903,3 +903,14 @@ int oio_idle_start(oio_handle_t* handle, oio_loop_cb cb) { int oio_idle_stop(oio_handle_t* handle) { assert(0 && "implement me"); } + + +int oio_async_init(oio_handle_t* handle, oio_async_cb async_cb, + oio_close_cb close_cb, void* data) { + assert(0 && "implement me"); +} + + +int oio_async_send(oio_handle_t* handle) { + assert(0 && "implement me"); +} diff --git a/test/runner-unix.c b/test/runner-unix.c index c4d6d72a..ebabbfad 100644 --- a/test/runner-unix.c +++ b/test/runner-unix.c @@ -22,6 +22,8 @@ #include "runner-unix.h" #include "runner.h" +#include /* uintptr_t */ + #include #include /* strdup */ #include @@ -301,3 +303,22 @@ void process_cleanup(process_info_t *p) { void rewind_cursor() { fprintf(stderr, "\033[2K\r"); } + + +uintptr_t oio_create_thread(void (*entry)(void* arg), void* arg) { + assert(0 && "implement me"); +} + + +/* Wait for a thread to terminate. Should return 0 if the thread ended, -1 on + * error. + */ +int oio_wait_thread(uintptr_t thread_id) { + assert(0 && "implement me"); +} + + +/* Pause the calling thread for a number of milliseconds. */ +void oio_sleep(int msec) { + assert(0 && "implement me"); +}