diff options
Diffstat (limited to 'src/worker.h')
-rw-r--r-- | src/worker.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/worker.h b/src/worker.h index a98bfc6..88b011b 100644 --- a/src/worker.h +++ b/src/worker.h @@ -37,17 +37,18 @@ JalvWorker* jalv_worker_new(ZixSem* lock, bool threaded); /** - Start performing work for a plugin, launching the thread if necessary. + Attach the worker to a plugin instance. This must be called before scheduling any work. + @param worker Worker to activate and attach to a plugin. @param iface Worker interface from plugin. @param handle Handle to the LV2 plugin this worker is for. */ void -jalv_worker_start(JalvWorker* worker, - const LV2_Worker_Interface* iface, - LV2_Handle handle); +jalv_worker_attach(JalvWorker* worker, + const LV2_Worker_Interface* iface, + LV2_Handle handle); /** Terminate the worker's thread if necessary. |