ui/common/threadpool.c

branch
newapi
changeset 404
384f6d1f5784
parent 288
c5e89affb2ea
equal deleted inserted replaced
403:b59935b2de79 404:384f6d1f5784
27 */ 27 */
28 28
29 #include "threadpool.h" 29 #include "threadpool.h"
30 #include "context.h" 30 #include "context.h"
31 31
32 #include <pthread.h>
33
34 #ifndef _WIN32 32 #ifndef _WIN32
35 33
34 #include <pthread.h>
35 #include <stdio.h>
36 #include <string.h>
37 #include <errno.h>
36 38
37 static threadpool_job kill_job; 39 static threadpool_job kill_job;
38 40
39 UiThreadpool* threadpool_new(int min, int max) { 41 UiThreadpool* threadpool_new(int min, int max) {
40 UiThreadpool *pool = malloc(sizeof(UiThreadpool)); 42 UiThreadpool *pool = malloc(sizeof(UiThreadpool));

mercurial