Remember that this is being executed in the Web container thread. If anything else happens on the SIP container thread, we may encounter a race condition.
如果SIP容器线程上发生其他事情,可能会遇到竞争条件。
If another thread calls pthread_cond_signal on a condition, then a thread that was waiting on that condition variable is woken up.
如果另一个线程对一个条件变量调用pthread_cond_signal,那么那个等待这个条件而被阻塞的线程就会被唤醒。
If another thread calls pthread_cond_broadcast on a condition, then all threads waiting on that variable are woken up.
如果另一个线程对这个条件变量调用pthread_cond_broadcast,那么所有等待这个条件而被阻塞的线程都会被唤醒。
应用推荐