posix thread pool in c