Skip to content

Conversation

@actboy168
Copy link
Contributor

SRWLOCK应该是比CRITICAL_SECTION更好的选择。另外InitializeSRWLock和InitializeCriticalSection都是等价于全部置零。

参考: https://learn.microsoft.com/en-us/archive/msdn-magazine/2012/november/windows-with-c-the-evolution-of-synchronization-in-windows-and-c

@cloudwu cloudwu merged commit 84a92d2 into cloudwu:master Mar 24, 2023
@actboy168 actboy168 deleted the patch-1 branch June 5, 2023 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants