Thread pool on pure C language