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
37640f32
Commit
37640f32
authored
Apr 09, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement ExIsResourceAcquiredExclusiveLite().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
01566351
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+1
-1
sync.c
dlls/ntoskrnl.exe/sync.c
+19
-0
wdm.h
include/ddk/wdm.h
+1
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
37640f32
...
...
@@ -165,7 +165,7 @@
@ stub ExInterlockedPushEntryList
@ stdcall ExInterlockedRemoveHeadList(ptr ptr)
@ stub ExIsProcessorFeaturePresent
@ st
ub ExIsResourceAcquiredExclusiveLite
@ st
dcall ExIsResourceAcquiredExclusiveLite(ptr)
@ stub ExIsResourceAcquiredSharedLite
@ stdcall ExLocalTimeToSystemTime(ptr ptr) RtlLocalTimeToSystemTime
@ stub ExNotifyCallback
...
...
dlls/ntoskrnl.exe/sync.c
View file @
37640f32
...
...
@@ -1125,3 +1125,22 @@ ULONG WINAPI ExGetSharedWaiterCount( ERESOURCE *resource )
return
count
;
}
/***********************************************************************
* ExIsResourceAcquiredExclusiveLite (NTOSKRNL.EXE.@)
*/
BOOLEAN
WINAPI
ExIsResourceAcquiredExclusiveLite
(
ERESOURCE
*
resource
)
{
BOOLEAN
ret
;
KIRQL
irql
;
TRACE
(
"resource %p.
\n
"
,
resource
);
KeAcquireSpinLock
(
&
resource
->
SpinLock
,
&
irql
);
ret
=
(
resource
->
OwnerEntry
.
OwnerThread
==
(
ERESOURCE_THREAD
)
KeGetCurrentThread
());
KeReleaseSpinLock
(
&
resource
->
SpinLock
,
irql
);
return
ret
;
}
include/ddk/wdm.h
View file @
37640f32
...
...
@@ -1531,6 +1531,7 @@ NTSTATUS WINAPI ExInitializeResourceLite(ERESOURCE*);
PSLIST_ENTRY
WINAPI
ExInterlockedPopEntrySList
(
PSLIST_HEADER
,
PKSPIN_LOCK
);
PSLIST_ENTRY
WINAPI
ExInterlockedPushEntrySList
(
PSLIST_HEADER
,
PSLIST_ENTRY
,
PKSPIN_LOCK
);
LIST_ENTRY
*
WINAPI
ExInterlockedRemoveHeadList
(
LIST_ENTRY
*
,
KSPIN_LOCK
*
);
BOOLEAN
WINAPI
ExIsResourceAcquiredExclusiveLite
(
ERESOURCE
*
);
void
WINAPI
ExReleaseFastMutexUnsafe
(
PFAST_MUTEX
);
void
WINAPI
ExReleaseResourceForThreadLite
(
ERESOURCE
*
,
ERESOURCE_THREAD
);
ULONG
WINAPI
ExSetTimerResolution
(
ULONG
,
BOOLEAN
);
...
...
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