Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
86fc30c1
Commit
86fc30c1
authored
Jan 20, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add YieldProcessor().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a3c295d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
winnt.h
include/winnt.h
+13
-0
No files found.
include/winnt.h
View file @
86fc30c1
...
...
@@ -7154,6 +7154,19 @@ static FORCEINLINE void MemoryBarrier(void)
#endif
/* __GNUC__ */
static
FORCEINLINE
void
YieldProcessor
(
void
)
{
#ifdef __GNUC__
#if defined(__i386__) || defined(__x86_64__)
__asm__
__volatile__
(
"rep; nop"
:
:
:
"memory"
);
#elif defined(__arm__) || defined(__aarch64__)
__asm__
__volatile__
(
"dmb ishst
\n\t
yield"
:
:
:
"memory"
);
#else
__asm__
__volatile__
(
""
:
:
:
"memory"
);
#endif
#endif
}
#ifdef __cplusplus
}
#endif
...
...
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