diff -r 9036b346cd66 -r 9c79f00fbf36 ui/ui/toolkit.h --- a/ui/ui/toolkit.h Sun Jan 28 19:33:56 2024 +0100 +++ b/ui/ui/toolkit.h Sun Jan 28 20:46:49 2024 +0100 @@ -163,6 +163,8 @@ typedef struct UiImage UiImage; typedef struct UiDnD UiDnD; + +typedef struct UiThreadpool UiThreadpool; /* end opaque types */ typedef struct UiTabbedPane UiTabbedPane; @@ -372,6 +374,9 @@ UIEXPORT void ui_job(UiObject *obj, ui_threadfunc tf, void *td, ui_callback f, void *fd); UIEXPORT void ui_call_mainthread(ui_threadfunc tf, void* td); +UIEXPORT UiThreadpool* ui_threadpool_create(int nthreads); +UIEXPORT void ui_threadpool_destroy(UiThreadpool* pool); +UIEXPORT void ui_threadpool_job(UiThreadpool* pool, UiObject* obj, ui_threadfunc tf, void* td, ui_callback f, void* fd); UIEXPORT void* ui_document_new(size_t size); UIEXPORT void ui_document_destroy(void *doc);