From 39c3fa785cafd5fa9b75bfbf92d7a702310ba480 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Tue, 22 Apr 2025 16:59:33 -0500 Subject: Yay segfault --- src/main.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 2fcf8ab..f89a124 100644 --- a/src/main.c +++ b/src/main.c @@ -3,12 +3,27 @@ #include "encryption.h" #include "scanner.h" #include "shared.h" - +#include "threadpool.h" #include #include +#include +int testcb(void *data) { + if(!data) + return -1; + + printf("%s\n", (char*)data); + return 0; +} + int main() { - error(1, ENOTSUP, "No main file lol"); + // error(1, ENOTSUP, "No main file lol"); + + threadpool *tp = threadpool_init(2); + task *tsk = task_init(testcb, "This is some data"); + threadpool_addtask(tp, tsk); + threadpool_free(tp); + return 0; } \ No newline at end of file -- cgit v1.2.3