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
ab22796a
Commit
ab22796a
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 ExIsResourceAcquiredSharedLite().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
37640f32
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+1
-1
sync.c
dlls/ntoskrnl.exe/sync.c
+25
-0
wdm.h
include/ddk/wdm.h
+1
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
ab22796a
...
@@ -166,7 +166,7 @@
...
@@ -166,7 +166,7 @@
@ stdcall ExInterlockedRemoveHeadList(ptr ptr)
@ stdcall ExInterlockedRemoveHeadList(ptr ptr)
@ stub ExIsProcessorFeaturePresent
@ stub ExIsProcessorFeaturePresent
@ stdcall ExIsResourceAcquiredExclusiveLite(ptr)
@ stdcall ExIsResourceAcquiredExclusiveLite(ptr)
@ st
ub ExIsResourceAcquiredSharedLite
@ st
dcall ExIsResourceAcquiredSharedLite(ptr)
@ stdcall ExLocalTimeToSystemTime(ptr ptr) RtlLocalTimeToSystemTime
@ stdcall ExLocalTimeToSystemTime(ptr ptr) RtlLocalTimeToSystemTime
@ stub ExNotifyCallback
@ stub ExNotifyCallback
@ stub ExQueryPoolBlockSize
@ stub ExQueryPoolBlockSize
...
...
dlls/ntoskrnl.exe/sync.c
View file @
ab22796a
...
@@ -1144,3 +1144,28 @@ BOOLEAN WINAPI ExIsResourceAcquiredExclusiveLite( ERESOURCE *resource )
...
@@ -1144,3 +1144,28 @@ BOOLEAN WINAPI ExIsResourceAcquiredExclusiveLite( ERESOURCE *resource )
return
ret
;
return
ret
;
}
}
/***********************************************************************
* ExIsResourceAcquiredSharedLite (NTOSKRNL.EXE.@)
*/
ULONG
WINAPI
ExIsResourceAcquiredSharedLite
(
ERESOURCE
*
resource
)
{
ULONG
ret
;
KIRQL
irql
;
TRACE
(
"resource %p.
\n
"
,
resource
);
KeAcquireSpinLock
(
&
resource
->
SpinLock
,
&
irql
);
if
(
resource
->
OwnerEntry
.
OwnerThread
==
(
ERESOURCE_THREAD
)
KeGetCurrentThread
())
ret
=
resource
->
ActiveEntries
;
else
{
OWNER_ENTRY
*
entry
=
resource_get_shared_entry
(
resource
,
(
ERESOURCE_THREAD
)
KeGetCurrentThread
()
);
ret
=
entry
->
OwnerCount
;
}
KeReleaseSpinLock
(
&
resource
->
SpinLock
,
irql
);
return
ret
;
}
include/ddk/wdm.h
View file @
ab22796a
...
@@ -1532,6 +1532,7 @@ PSLIST_ENTRY WINAPI ExInterlockedPopEntrySList(PSLIST_HEADER,PKSPIN_LOCK);
...
@@ -1532,6 +1532,7 @@ PSLIST_ENTRY WINAPI ExInterlockedPopEntrySList(PSLIST_HEADER,PKSPIN_LOCK);
PSLIST_ENTRY
WINAPI
ExInterlockedPushEntrySList
(
PSLIST_HEADER
,
PSLIST_ENTRY
,
PKSPIN_LOCK
);
PSLIST_ENTRY
WINAPI
ExInterlockedPushEntrySList
(
PSLIST_HEADER
,
PSLIST_ENTRY
,
PKSPIN_LOCK
);
LIST_ENTRY
*
WINAPI
ExInterlockedRemoveHeadList
(
LIST_ENTRY
*
,
KSPIN_LOCK
*
);
LIST_ENTRY
*
WINAPI
ExInterlockedRemoveHeadList
(
LIST_ENTRY
*
,
KSPIN_LOCK
*
);
BOOLEAN
WINAPI
ExIsResourceAcquiredExclusiveLite
(
ERESOURCE
*
);
BOOLEAN
WINAPI
ExIsResourceAcquiredExclusiveLite
(
ERESOURCE
*
);
ULONG
WINAPI
ExIsResourceAcquiredSharedLite
(
ERESOURCE
*
);
void
WINAPI
ExReleaseFastMutexUnsafe
(
PFAST_MUTEX
);
void
WINAPI
ExReleaseFastMutexUnsafe
(
PFAST_MUTEX
);
void
WINAPI
ExReleaseResourceForThreadLite
(
ERESOURCE
*
,
ERESOURCE_THREAD
);
void
WINAPI
ExReleaseResourceForThreadLite
(
ERESOURCE
*
,
ERESOURCE_THREAD
);
ULONG
WINAPI
ExSetTimerResolution
(
ULONG
,
BOOLEAN
);
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