diff options
Diffstat (limited to 'src/main.c')
| -rwxr-xr-x | src/main.c | 13 |
1 files changed, 1 insertions, 12 deletions
| @@ -20,18 +20,7 @@ int testcb(void *arg) { | |||
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | int main() { | 22 | int main() { |
| 23 | // error(-1, ENOTSUP, "lol"); | 23 | error(-1, ENOTSUP, "lol"); |
| 24 | |||
| 25 | cqueue *cq = cqueue_init(); | ||
| 26 | // if(!cq) | ||
| 27 | // abort(); | ||
| 28 | |||
| 29 | cqueue_registerthreads(cq, 10); | ||
| 30 | cqueue_addtask(cq, task_init(testcb, "this is some data")); | ||
| 31 | |||
| 32 | sleep(3); | ||
| 33 | |||
| 34 | cqueue_free(cq); | ||
| 35 | 24 | ||
| 36 | return 0; | 25 | return 0; |
| 37 | } \ No newline at end of file | 26 | } \ No newline at end of file |
