A threadpool with individually cancelable threads in C99