If wakeone or wakeAll issued before the wait function, wait will never die, such as how to solve the problem of wait forever die, etc?
CodePudding user response:
Don't know you is what circumstance, can try to QSemaphore semaphore, semaphore release first (wake) to acquire (wait) will return immediately,