diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-28 22:16:45 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-28 22:16:45 +0100 |
| commit | 03d044b88dd1377281caa44c0133d9f22579ba90 (patch) | |
| tree | 216c88a5344c2299c5120b035433e96d1fd2f91a /src/ot_workqueue.h | |
| parent | fdbd31bbb3e61cc42c2d12371975b892934dd51c (diff) | |
Add a generation to a task on the workqueue to prevent its result being sent to the next client reusing the fd
Diffstat (limited to 'src/ot_workqueue.h')
| -rw-r--r-- | src/ot_workqueue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ot_workqueue.h b/src/ot_workqueue.h index d8f30d6..982292e 100644 --- a/src/ot_workqueue.h +++ b/src/ot_workqueue.h | |||
| @@ -64,7 +64,7 @@ void workqueue_pushsuccess(ot_taskid taskid); | |||
| 64 | ot_taskid workqueue_poptask(ot_tasktype *tasktype); | 64 | ot_taskid workqueue_poptask(ot_tasktype *tasktype); |
| 65 | int workqueue_pushresult(ot_taskid taskid, size_t iovec_entries, struct iovec *iovector); | 65 | int workqueue_pushresult(ot_taskid taskid, size_t iovec_entries, struct iovec *iovector); |
| 66 | int workqueue_pushchunked(ot_taskid taskid, struct iovec *iovec); | 66 | int workqueue_pushchunked(ot_taskid taskid, struct iovec *iovec); |
| 67 | int64_t workqueue_popresult(size_t *iovec_entries, struct iovec **iovector, int *is_partial); | 67 | int64_t workqueue_popresult(size_t *iovec_entries, struct iovec **iovector, int *is_partial, uint32_t *generation); |
| 68 | 68 | ||
| 69 | void workqueue_init(void); | 69 | void workqueue_init(void); |
| 70 | void workqueue_deinit(void); | 70 | void workqueue_deinit(void); |
