Moreover, it may be impossible to make a non-reentrant function thread-safe.
另外,或许不可能让某个不可重入的函数是线程安全的。
The table, function, and thread types are all references.
表、函数和线程类型都是引用。
This function suspends the calling thread until the semaphore has a non-zero count.
这个函数会挂起调用线程,直到这个信号量有一个非空计数为止。
应用推荐