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
05f5cce6
Commit
05f5cce6
authored
Jan 27, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement plain spinlock functions on top of DPC-level ones.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
da4291df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
sync.c
dlls/ntoskrnl.exe/sync.c
+2
-3
No files found.
dlls/ntoskrnl.exe/sync.c
View file @
05f5cce6
...
...
@@ -421,7 +421,7 @@ void WINAPI KeReleaseSpinLockFromDpcLevel( KSPIN_LOCK *lock )
void
WINAPI
KeReleaseSpinLock
(
KSPIN_LOCK
*
lock
,
KIRQL
irql
)
{
TRACE
(
"lock %p, irql %u.
\n
"
,
lock
,
irql
);
InterlockedExchangePointer
(
(
void
**
)
lock
,
0
);
KeReleaseSpinLockFromDpcLevel
(
lock
);
}
/***********************************************************************
...
...
@@ -430,8 +430,7 @@ void WINAPI KeReleaseSpinLock( KSPIN_LOCK *lock, KIRQL irql )
KIRQL
WINAPI
KeAcquireSpinLockRaiseToDpc
(
KSPIN_LOCK
*
lock
)
{
TRACE
(
"lock %p.
\n
"
,
lock
);
while
(
!
InterlockedCompareExchangePointer
(
(
void
**
)
lock
,
(
void
*
)
1
,
(
void
*
)
0
))
small_pause
();
KeAcquireSpinLockAtDpcLevel
(
lock
);
return
0
;
}
#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