1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-31 23:53:02 +00:00

Allow passing pointer-buffers to other threads.

This commit is contained in:
Calvin Rose
2023-02-12 11:07:45 -06:00
parent 1cadff8e58
commit 2e38f9ba61
6 changed files with 56 additions and 9 deletions

View File

@@ -1588,6 +1588,7 @@ JANET_API Janet janet_array_peek(JanetArray *array);
#define JANET_BUFFER_FLAG_NO_REALLOC 0x10000
JANET_API JanetBuffer *janet_buffer(int32_t capacity);
JANET_API JanetBuffer *janet_buffer_init(JanetBuffer *buffer, int32_t capacity);
JANET_API JanetBuffer *janet_pointer_buffer_unsafe(void *memory, int32_t capacity, int32_t count);
JANET_API void janet_buffer_deinit(JanetBuffer *buffer);
JANET_API void janet_buffer_ensure(JanetBuffer *buffer, int32_t capacity, int32_t growth);
JANET_API void janet_buffer_setcount(JanetBuffer *buffer, int32_t count);