Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ad1f2704
Commit
ad1f2704
authored
Jan 29, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add ExInitializeFastMutex() definition.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5b465c50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
wdm.h
include/ddk/wdm.h
+11
-1
No files found.
include/ddk/wdm.h
View file @
ad1f2704
...
...
@@ -168,12 +168,14 @@ typedef struct _OBJECT_TYPE *POBJECT_TYPE;
typedef
struct
_OBJECT_HANDLE_INFORMATION
*
POBJECT_HANDLE_INFORMATION
;
typedef
struct
_ZONE_HEADER
*
PZONE_HEADER
;
#define FM_LOCK_BIT 0x1
typedef
struct
_FAST_MUTEX
{
LONG
Count
;
PKTHREAD
Owner
;
ULONG
Contention
;
KEVENT
Gate
;
KEVENT
Event
;
ULONG
OldIrql
;
}
FAST_MUTEX
,
*
PFAST_MUTEX
;
...
...
@@ -1593,4 +1595,12 @@ NTSTATUS WINAPI ZwWaitForMultipleObjects(ULONG,const HANDLE*,BOOLEAN,BOOLEAN,co
NTSTATUS
WINAPI
ZwWriteFile
(
HANDLE
,
HANDLE
,
PIO_APC_ROUTINE
,
PVOID
,
PIO_STATUS_BLOCK
,
const
void
*
,
ULONG
,
PLARGE_INTEGER
,
PULONG
);
NTSTATUS
WINAPI
ZwYieldExecution
(
void
);
static
inline
void
ExInitializeFastMutex
(
FAST_MUTEX
*
mutex
)
{
mutex
->
Count
=
FM_LOCK_BIT
;
mutex
->
Owner
=
NULL
;
mutex
->
Contention
=
0
;
KeInitializeEvent
(
&
mutex
->
Event
,
SynchronizationEvent
,
FALSE
);
}
#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