diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-11-11 14:05:59 -0500 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-11-11 14:05:59 -0500 |
| commit | 75c8828d804f45cf8f44af73bfe87e0f3eaf9a9e (patch) | |
| tree | 2fdf51906d2517bbe8c928fc52f95bb2e0dda4f9 /source/task.c | |
| parent | 7b9204a8680539bc4795a14f3d9a34e47981d0c3 (diff) | |
run a task test
Diffstat (limited to 'source/task.c')
| -rw-r--r-- | source/task.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/task.c b/source/task.c index add3363..0766f62 100644 --- a/source/task.c +++ b/source/task.c @@ -9,7 +9,8 @@ static void kpl_interface_object_task_gc_mark_object(void *object) { static const kpl_interface object_task_interface = { .gc_mark_object_fn = kpl_interface_object_task_gc_mark_object, .native_free_fn = NULL, - .log_fn = NULL + .log_fn = NULL, + .copy_fn = NULL }; kpl_object_task *kpl_object_task_create(kpl_thread *thread, int32_t variables_size, uint64_t variables_gc_mask) { @@ -42,3 +43,10 @@ void kpl_object_task_done(kpl_thread *thread, kpl_object_task *object_task) { extern inline void kpl_object_task_join(kpl_thread *thread, kpl_object_task *restrict object_task_complete, kpl_object_task *restrict object_task_join); + +extern inline void kpl_object_task_error(kpl_thread *thread, kpl_object_error *object_error); + +void kpl_object_task_error(kpl_thread *thread, kpl_object_error *object_error) { + kpl_object_queue_enqueue(&thread->error_queue, object_error); + thread->env->flags |= KPL_ENV_FLAG_HAS_ERROR; +} |
