ты не понял) Когда время кочнилось мне нужно получить результат, что успело насчитаться, а не просто прибить тред. Тут как бэ не так всё просто
https://en.cppreference.com/w/c/thread/tss_create
Из документации thrd_exit:
First, for every thread-specific storage key which was created with a non-null destructor and for which the associated value is non-null (see tss_create), thrd_exit sets the value associated with the key to NULL and then invokes the destructor with the previous value of the key. The order in which the destructors are invoked is unspecified.
То есть можно деструкторы указывать при завершении потока, деструктор будет отправлять результат тебе (по каналу, лол).