feat: add threadpool and started pooling executors

This commit is contained in:
2024-08-03 13:08:46 +02:00
parent e35dbdb1f3
commit dcc25f88a7
15 changed files with 544 additions and 85 deletions
+8
View File
@@ -13,5 +13,13 @@
assert(fd != -1); \
} \
} while (0)
#define ARRAY_SIZE(a) (sizeof((a)) / sizeof((a)[0]))
// remove whitespace characters on both ends of the string.
// Retuirns a new string that you must free.
char* trim(const char* const str);
typedef void(*line_handler)(const char*);
void per_line(const char* file, line_handler handler);
#endif