FSG_STATE_TERMINATED
common->state = FSG_STATE_TERMINATED; /* Stop the thread */
case FSG_STATE_TERMINATED:
while (common->state != FSG_STATE_TERMINATED) {
common->state = FSG_STATE_TERMINATED;
if (common->state != FSG_STATE_TERMINATED) {
common->state = FSG_STATE_TERMINATED;
if (fsg->common->state != FSG_STATE_TERMINATED) {