ui/cocoa/toolkit.m

changeset 720
6fa3c629000f
parent 687
d43b4fcd3d8c
child 721
e9f655afc7ed
equal deleted inserted replaced
719:6963d97a38d3 720:6fa3c629000f
35 #include "../common/threadpool.h" 35 #include "../common/threadpool.h"
36 36
37 #import "image.h" 37 #import "image.h"
38 #import "menu.h" 38 #import "menu.h"
39 #import "Toolbar.h" 39 #import "Toolbar.h"
40 #import "UiJob.h"
40 41
41 #import "AppDelegate.h" 42 #import "AppDelegate.h"
42 43
43 static const char *application_name; 44 static const char *application_name;
44 45
158 } 159 }
159 160
160 /* ------------------- Job Control / Threadpool functions ------------------- */ 161 /* ------------------- Job Control / Threadpool functions ------------------- */
161 162
162 void ui_job(UiObject *obj, ui_threadfunc tf, void *td, ui_callback f, void *fd) { 163 void ui_job(UiObject *obj, ui_threadfunc tf, void *td, ui_callback f, void *fd) {
163 164 UiThread *thread = [[UiThread alloc]init:obj jobfunc:tf jobdata:td];
165 thread.finish_callback = f;
166 thread.finish_userdata = fd;
167 [thread start];
164 } 168 }
165 169
166 void ui_call_mainthread(ui_threadfunc tf, void* td) { 170 void ui_call_mainthread(ui_threadfunc tf, void* td) {
167 171
168 } 172 }

mercurial