/******************************************************************************/ /* SlunkCrypt, by LoRd_MuldeR */ /* This work has been released under the CC0 1.0 Universal license! */ /******************************************************************************/ #ifndef INC_SLUNKCRYPT_THREAD_H #define INC_SLUNKCRYPT_THREAD_H #include #include #define MAX_THREADS 8U #define THRDPL_NULL ((thrdpl_t)NULL) typedef void (*thrdpl_worker_t)(void *arguments); typedef uintptr_t thrdpl_t; thrdpl_t thrdpl_create(const size_t count); void thrdpl_submit(const thrdpl_t thrdpl, const thrdpl_worker_t worker, void *const arguments); void thrdpl_await(const thrdpl_t thrdpl); void thrdpl_destroy(const thrdpl_t thrdpl); #endif