ui/common/threadpool.c

changeset 100
d2bd73d28ff1
parent 35
834d9c15a69f
equal deleted inserted replaced
99:b9767cb5b06b 100:d2bd73d28ff1
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