Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
615a2ab5
Commit
615a2ab5
authored
Feb 14, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use YieldProcessor() in RtlEnterCriticalSection().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cfb1d205
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
sync.c
dlls/ntdll/sync.c
+1
-10
No files found.
dlls/ntdll/sync.c
View file @
615a2ab5
...
...
@@ -373,15 +373,6 @@ NTSTATUS WINAPI RtlpUnWaitCriticalSection( RTL_CRITICAL_SECTION *crit )
}
static
inline
void
small_pause
(
void
)
{
#ifdef __i386__
__asm__
__volatile__
(
"rep;nop"
:
:
:
"memory"
);
#else
__asm__
__volatile__
(
""
:
:
:
"memory"
);
#endif
}
/******************************************************************************
* RtlEnterCriticalSection (NTDLL.@)
*/
...
...
@@ -399,7 +390,7 @@ NTSTATUS WINAPI RtlEnterCriticalSection( RTL_CRITICAL_SECTION *crit )
{
if
(
InterlockedCompareExchange
(
&
crit
->
LockCount
,
0
,
-
1
)
==
-
1
)
goto
done
;
}
small_pause
();
YieldProcessor
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment