diff options
| author | @syxhe <https://t.me/syxhe> | 2025-06-06 13:30:34 -0500 |
|---|---|---|
| committer | @syxhe <https://t.me/syxhe> | 2025-06-06 13:30:34 -0500 |
| commit | 16528ac295215e788cb226f0cc49f11f82919741 (patch) | |
| tree | 8bbe621a58a421b894330205bf07285e80e40e9e /src/main.c | |
| parent | 8fe1a7ea459829145dfef4b0aa8f627f96841cbd (diff) | |
Get threadpool implementation workingthreadpool-debugging
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 |
