Skip to content

use SRWLOCK instead of CRITICAL_SECTION#92

Merged
cloudwu merged 1 commit intocloudwu:masterfrom
actboy168:patch-1
Mar 24, 2023
Merged

use SRWLOCK instead of CRITICAL_SECTION#92
cloudwu merged 1 commit intocloudwu:masterfrom
actboy168:patch-1

Conversation

@actboy168
Copy link
Copy Markdown
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants