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
0cd4317c
Commit
0cd4317c
authored
Apr 24, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Apr 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented SignalObjectAndWait.
parent
f92fff66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
sync.c
dlls/kernel/sync.c
+23
-4
No files found.
dlls/kernel/sync.c
View file @
0cd4317c
...
...
@@ -284,12 +284,31 @@ BOOL WINAPI UnregisterWaitEx( HANDLE WaitHandle, HANDLE CompletionEvent )
* Allows to atomically signal any of the synchro objects (semaphore,
* mutex, event) and wait on another.
*/
DWORD
WINAPI
SignalObjectAndWait
(
HANDLE
hObjectToSignal
,
HANDLE
hObjectToWaitOn
,
DWORD
dwMilliseconds
,
BOOL
bAlertable
)
DWORD
WINAPI
SignalObjectAndWait
(
HANDLE
hObjectToSignal
,
HANDLE
hObjectToWaitOn
,
DWORD
dwMilliseconds
,
BOOL
bAlertable
)
{
FIXME
(
"(%p %p %ld %d): stub
\n
"
,
hObjectToSignal
,
hObjectToWaitOn
,
dwMilliseconds
,
bAlertable
);
return
WAIT_OBJECT_0
;
}
NTSTATUS
status
;
LARGE_INTEGER
timeout
,
*
ptimeout
=
NULL
;
TRACE
(
"%p %p %ld %d
\n
"
,
hObjectToSignal
,
hObjectToWaitOn
,
dwMilliseconds
,
bAlertable
);
if
(
dwMilliseconds
!=
INFINITE
)
{
timeout
.
QuadPart
=
dwMilliseconds
*
(
ULONGLONG
)
10000
;
timeout
.
QuadPart
=
-
timeout
.
QuadPart
;
ptimeout
=
&
timeout
;
}
status
=
NtSignalAndWaitForSingleObject
(
hObjectToSignal
,
hObjectToWaitOn
,
bAlertable
,
ptimeout
);
if
(
HIWORD
(
status
))
{
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
status
=
WAIT_FAILED
;
}
return
status
;
}
/***********************************************************************
* InitializeCriticalSection (KERNEL32.@)
...
...
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