diff options
| author | 2021-08-16 21:14:06 -0500 | |
|---|---|---|
| committer | 2021-08-16 21:14:06 -0500 | |
| commit | e552757edcaf8805deec82cdf740504e8f563785 (patch) | |
| tree | 571e5a4226b92a42e1d13ca83faee63942dc286e /src/include/janet.h | |
| parent | Deprecate the thread module. (diff) | |
Fix threaded supervisor channels - Fix #766
Some pointer casting with abstract types was incorrect, resulting
in strange behavior when trying to use supervisor channels that were
threaded. This fix also adds the ability to supply a supervisor channel
directly when creating a thread.
Diffstat (limited to 'src/include/janet.h')
| -rw-r--r-- | src/include/janet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/janet.h b/src/include/janet.h index d4e904da..b7f5c2b8 100644 --- a/src/include/janet.h +++ b/src/include/janet.h @@ -1951,6 +1951,7 @@ JANET_API uint8_t janet_unmarshal_byte(JanetMarshalContext *ctx); JANET_API void janet_unmarshal_bytes(JanetMarshalContext *ctx, uint8_t *dest, size_t len); JANET_API Janet janet_unmarshal_janet(JanetMarshalContext *ctx); JANET_API JanetAbstract janet_unmarshal_abstract(JanetMarshalContext *ctx, size_t size); +JANET_API void janet_unmarshal_abstract_reuse(JanetMarshalContext *ctx, void *p); JANET_API void janet_register_abstract_type(const JanetAbstractType *at); JANET_API const JanetAbstractType *janet_get_abstract_type(Janet key); |
