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
01566351
Commit
01566351
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 ExGetSharedWaiterCount().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
631473ff
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 @
01566351
...
...
@@ -148,7 +148,7 @@
@ stub ExGetCurrentProcessorCpuUsage
@ stdcall ExGetExclusiveWaiterCount(ptr)
@ stub ExGetPreviousMode
@ st
ub ExGetSharedWaiterCount
@ st
dcall ExGetSharedWaiterCount(ptr)
@ stdcall ExInitializeNPagedLookasideList(ptr ptr ptr long long long long)
@ stdcall ExInitializePagedLookasideList(ptr ptr ptr long long long long)
@ stdcall ExInitializeResourceLite(ptr)
...
...
dlls/ntoskrnl.exe/sync.c
View file @
01566351
...
...
@@ -1106,3 +1106,22 @@ ULONG WINAPI ExGetExclusiveWaiterCount( ERESOURCE *resource )
return
count
;
}
/***********************************************************************
* ExGetSharedWaiterCount (NTOSKRNL.EXE.@)
*/
ULONG
WINAPI
ExGetSharedWaiterCount
(
ERESOURCE
*
resource
)
{
ULONG
count
;
KIRQL
irql
;
TRACE
(
"resource %p.
\n
"
,
resource
);
KeAcquireSpinLock
(
&
resource
->
SpinLock
,
&
irql
);
count
=
resource
->
NumberOfSharedWaiters
;
KeReleaseSpinLock
(
&
resource
->
SpinLock
,
irql
);
return
count
;
}
include/ddk/wdm.h
View file @
01566351
...
...
@@ -1525,6 +1525,7 @@ NTSTATUS WINAPI ExDeleteResourceLite(ERESOURCE*);
void
WINAPI
ExFreePool
(
PVOID
);
void
WINAPI
ExFreePoolWithTag
(
PVOID
,
ULONG
);
ULONG
WINAPI
ExGetExclusiveWaiterCount
(
ERESOURCE
*
);
ULONG
WINAPI
ExGetSharedWaiterCount
(
ERESOURCE
*
);
void
WINAPI
ExInitializeNPagedLookasideList
(
PNPAGED_LOOKASIDE_LIST
,
PALLOCATE_FUNCTION
,
PFREE_FUNCTION
,
ULONG
,
SIZE_T
,
ULONG
,
USHORT
);
NTSTATUS
WINAPI
ExInitializeResourceLite
(
ERESOURCE
*
);
PSLIST_ENTRY
WINAPI
ExInterlockedPopEntrySList
(
PSLIST_HEADER
,
PKSPIN_LOCK
);
...
...
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