Home > Mobile >  Wakeone or wakeAll issued before the wait function, wait will never die, such as how to do?
Wakeone or wakeAll issued before the wait function, wait will never die, such as how to do?

Time:11-12

Ask everyone a qt problem!
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,
  •  Tags:  
  • Qt
  • Related