假设有多个线程阻塞等待一个信号量,其间有某个线程异常挂掉了,阻塞队列中排在该线程后面的线程还能正常获取到信号量吗?
you can user autolock to avoid dismath in lock and unlock operation