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
e3856fd6
Commit
e3856fd6
authored
Jan 29, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement APC-level fast mutex functions.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ad1f2704
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
28 deletions
+38
-28
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+0
-28
sync.c
dlls/ntoskrnl.exe/sync.c
+38
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
e3856fd6
...
...
@@ -727,34 +727,6 @@ done:
return
status
;
}
/***********************************************************************
* ExAcquireFastMutexUnsafe (NTOSKRNL.EXE.@)
*/
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT
(
ExAcquireFastMutexUnsafe
)
void
WINAPI
__regs_ExAcquireFastMutexUnsafe
(
PFAST_MUTEX
FastMutex
)
#else
void
WINAPI
ExAcquireFastMutexUnsafe
(
PFAST_MUTEX
FastMutex
)
#endif
{
FIXME
(
"(%p): stub
\n
"
,
FastMutex
);
}
/***********************************************************************
* ExReleaseFastMutexUnsafe (NTOSKRNL.EXE.@)
*/
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT
(
ExReleaseFastMutexUnsafe
)
void
WINAPI
__regs_ExReleaseFastMutexUnsafe
(
PFAST_MUTEX
FastMutex
)
#else
void
WINAPI
ExReleaseFastMutexUnsafe
(
PFAST_MUTEX
FastMutex
)
#endif
{
FIXME
(
"(%p): stub
\n
"
,
FastMutex
);
}
/***********************************************************************
* IoAllocateDriverObjectExtension (NTOSKRNL.EXE.@)
*/
...
...
dlls/ntoskrnl.exe/sync.c
View file @
e3856fd6
...
...
@@ -562,3 +562,41 @@ LIST_ENTRY * WINAPI ExInterlockedRemoveHeadList( LIST_ENTRY *list, KSPIN_LOCK *l
return
ret
;
}
/***********************************************************************
* ExAcquireFastMutexUnsafe (NTOSKRNL.EXE.@)
*/
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT
(
ExAcquireFastMutexUnsafe
)
void
WINAPI
__regs_ExAcquireFastMutexUnsafe
(
FAST_MUTEX
*
mutex
)
#else
void
WINAPI
ExAcquireFastMutexUnsafe
(
FAST_MUTEX
*
mutex
)
#endif
{
LONG
count
;
TRACE
(
"mutex %p.
\n
"
,
mutex
);
count
=
InterlockedDecrement
(
&
mutex
->
Count
);
if
(
count
<
0
)
KeWaitForSingleObject
(
&
mutex
->
Event
,
Executive
,
KernelMode
,
FALSE
,
NULL
);
}
/***********************************************************************
* ExReleaseFastMutexUnsafe (NTOSKRNL.EXE.@)
*/
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT
(
ExReleaseFastMutexUnsafe
)
void
WINAPI
__regs_ExReleaseFastMutexUnsafe
(
FAST_MUTEX
*
mutex
)
#else
void
WINAPI
ExReleaseFastMutexUnsafe
(
FAST_MUTEX
*
mutex
)
#endif
{
LONG
count
;
TRACE
(
"mutex %p.
\n
"
,
mutex
);
count
=
InterlockedIncrement
(
&
mutex
->
Count
);
if
(
count
<
1
)
KeSetEvent
(
&
mutex
->
Event
,
IO_NO_INCREMENT
,
FALSE
);
}
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