You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
314 B

#include <stdio.h>
#include <pthread.h>
#include "tiny_pool.h"
void* demo_fun(void *i) {
printf("demo func -> %d\n", *(int*)i);
return NULL;
}
int main() {
pthread_t tid;
int d = 123;
pool_t *pool = tiny_pool_create(0);
tiny_pool_submit(pool, demo_fun, (void*)&d);
return 0;
}