private void threadFunc() { while (!shutting_down) { signal(); if (shutting_down) { return; } poll_set.update(10); } }