-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win32: Use SRW Lock instead of CRITICAL_SECTION:
- The are the same in terms of performance. - The SRW Lock can be statically initialized and does not need to be freed. * include/arch/win32/apr_arch_threadproc.h (apr_threadproc_init): Remove declaration. * misc/win32/start.c (): Do not include apr_arch_threadproc.h. (apr_initialize): Do not call apr_threadproc_init() because it's not longer exists. * threadproc/win32/proc.c (proc_lock): Change type to SRW_LOCK and initialize it to SRWLOCK_INIT. (threadproc_global_cleanup, apr_threadproc_init): Remove. (apr_proc_create): Use AcquireSRWLockExclusive()/ReleaseSRWLockExclusive() instead of EnterCriticalSection()/LeaveCriticalSection(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1917990 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Ivan Zhakov
committed
May 26, 2024
1 parent
2d727e1
commit 66d769e
Showing
3 changed files
with
8 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters