JW_STOPPEDWAIT
((flags & JW_STOPPEDWAIT) && (volatile int) j->state == PSTOPPED)) {
flags |= JW_STOPPEDWAIT;