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
6a1667fa
Commit
6a1667fa
authored
May 21, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Move WaitOnAddress implementation to sync.c.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9b12068c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
main.c
dlls/kernelbase/main.c
+0
-15
sync.c
dlls/kernelbase/sync.c
+16
-0
No files found.
dlls/kernelbase/main.c
View file @
6a1667fa
...
...
@@ -200,21 +200,6 @@ BOOL WINAPI QuirkIsEnabled3(void *unk1, void *unk2)
return
FALSE
;
}
/***********************************************************************
* WaitOnAddress (KERNELBASE.@)
*/
BOOL
WINAPI
WaitOnAddress
(
volatile
void
*
addr
,
void
*
cmp
,
SIZE_T
size
,
DWORD
timeout
)
{
LARGE_INTEGER
to
;
if
(
timeout
!=
INFINITE
)
{
to
.
QuadPart
=
-
(
LONGLONG
)
timeout
*
10000
;
return
set_ntstatus
(
RtlWaitOnAddress
(
(
const
void
*
)
addr
,
cmp
,
size
,
&
to
));
}
return
set_ntstatus
(
RtlWaitOnAddress
(
(
const
void
*
)
addr
,
cmp
,
size
,
NULL
));
}
HRESULT
WINAPI
QISearch
(
void
*
base
,
const
QITAB
*
table
,
REFIID
riid
,
void
**
obj
)
{
const
QITAB
*
ptr
;
...
...
dlls/kernelbase/sync.c
View file @
6a1667fa
...
...
@@ -287,6 +287,22 @@ DWORD WINAPI DECLSPEC_HOTPATCH WaitForMultipleObjectsEx( DWORD count, const HAND
/***********************************************************************
* WaitOnAddress (kernelbase.@)
*/
BOOL
WINAPI
DECLSPEC_HOTPATCH
WaitOnAddress
(
volatile
void
*
addr
,
void
*
cmp
,
SIZE_T
size
,
DWORD
timeout
)
{
LARGE_INTEGER
to
;
if
(
timeout
!=
INFINITE
)
{
to
.
QuadPart
=
-
(
LONGLONG
)
timeout
*
10000
;
return
set_ntstatus
(
RtlWaitOnAddress
(
(
const
void
*
)
addr
,
cmp
,
size
,
&
to
));
}
return
set_ntstatus
(
RtlWaitOnAddress
(
(
const
void
*
)
addr
,
cmp
,
size
,
NULL
));
}
/***********************************************************************
* Events
***********************************************************************/
...
...
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