diff options
| author | 2021-01-18 16:44:22 -0600 | |
|---|---|---|
| committer | 2021-01-18 16:44:22 -0600 | |
| commit | 49dcc816ae923368e80a51807fcedf39b03971a6 (patch) | |
| tree | ceeb169f4170d095a5491600ee966e777523f0f8 /src/include/janet.h | |
| parent | Release 1.14.1 (diff) | |
Update os/shell to be non-blocking as well.v1.14.1
Diffstat (limited to 'src/include/janet.h')
| -rw-r--r-- | src/include/janet.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/janet.h b/src/include/janet.h index feb276d3..21e1f013 100644 --- a/src/include/janet.h +++ b/src/include/janet.h @@ -1324,6 +1324,7 @@ typedef struct { #define JANET_EV_TCTAG_ERR_STRING 5 /* cancel with janet_cstringv((const char *) argp) */ #define JANET_EV_TCTAG_ERR_STRINGF 6 /* cancel with janet_cstringv((const char *) argp), then call free on argp. */ #define JANET_EV_TCTAG_ERR_KEYWORD 7 /* cancel with janet_ckeywordv((const char *) argp) */ +#define JANET_EV_TCTAG_BOOLEAN 8 /* resume with janet_wrap_boolean(argi) */ /* Function pointer that is run in the thread pool */ typedef JanetEVGenericMessage(*JanetThreadedSubroutine)(JanetEVGenericMessage arguments); @@ -1333,7 +1334,7 @@ typedef void (*JanetThreadedCallback)(JanetEVGenericMessage return_value); /* API calls for quickly offloading some work in C to a new thread or thread pool. */ JANET_API void janet_ev_threaded_call(JanetThreadedSubroutine fp, JanetEVGenericMessage arguments, JanetThreadedCallback cb); -JANET_API void janet_ev_threaded_await(JanetThreadedSubroutine fp, int tag, int argi, void *argp); +JANET_NO_RETURN JANET_API void janet_ev_threaded_await(JanetThreadedSubroutine fp, int tag, int argi, void *argp); /* Callback used by janet_ev_threaded_await */ JANET_API void janet_ev_default_threaded_callback(JanetEVGenericMessage return_value); |
