e13b602
("Avoid using pthread_cancel") introduced a bogus termination test,
this fixes it.
Fixes #572
master
{ | { | ||||
(void)p; // unused | (void)p; // unused | ||||
while (my_terminate_is_required) { | |||||
while (!my_terminate_is_required) { | |||||
bool a_stop_is_required = false; | bool a_stop_is_required = false; | ||||
(void)pthread_mutex_lock(&my_mutex); | (void)pthread_mutex_lock(&my_mutex); |