application/main.c

changeset 955
ea9a999b4fc8
parent 954
07c1effb2a31
child 965
5d4419042d9b
--- a/application/main.c	Sun Dec 07 10:41:04 2025 +0100
+++ b/application/main.c	Sun Dec 07 10:51:47 2025 +0100
@@ -213,6 +213,8 @@
 static int thr_end = 0;
 static int thr_started = 0;
 
+static UiThreadpool *threadpool;
+
 int threadfunc(void *data) {
     printf("thr wait for data...\n");
     ui_condvar_wait(cond);
@@ -900,6 +902,8 @@
     ui_toolbar_add_default("Test4", UI_TOOLBAR_RIGHT);
     ui_toolbar_add_default("Test5", UI_TOOLBAR_RIGHT);
     
+    threadpool = ui_threadpool_create(10);
+    
     ui_main();
     
     return (EXIT_SUCCESS);

mercurial