如果多个线程在完成上面的初始调用后尝试锁定信号量,则这些线程会被阻塞,它们的请求进入队列,直到执行pthread _ mutex_unlock调用。
If multiple threads attempt to lock a semaphore after the initial call above, they block and their requests are queued until the pthread_mutex_unlock call is performed.
dwDesiredAccess是针对该信号量对象所请求的访问权。
DwDesiredAccess is the requested access for the semaphore object.
这里可能有联系,因为为了成功地执行 Replicator 发出的添加、删除和更新请求,需要持有数据库信号量。
There is a relationship here, as the database semaphore is needed to successfully execute the add, delete, and update requests from the Replicator.
应用推荐