unix: Stub out async and thread functions
This commit is contained in:
parent
6eadee1d11
commit
9e9bae5eb6
11
oio-unix.c
11
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");
|
||||
}
|
||||
|
||||
@ -22,6 +22,8 @@
|
||||
#include "runner-unix.h"
|
||||
#include "runner.h"
|
||||
|
||||
#include <stdint.h> /* uintptr_t */
|
||||
|
||||
#include <unistd.h>
|
||||
#include <string.h> /* strdup */
|
||||
#include <stdio.h>
|
||||
@ -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");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user