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
72cf5d6f
Commit
72cf5d6f
authored
Jan 22, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jan 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Forward SleepConditionVariableSRW to ntdll.
parent
fad29fc5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-0
sync.c
dlls/kernel32/sync.c
+18
-0
winbase.h
include/winbase.h
+1
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
72cf5d6f
...
...
@@ -1196,6 +1196,7 @@
@ stdcall SizeofResource(long long)
@ stdcall Sleep(long)
@ stdcall SleepConditionVariableCS(ptr ptr long)
@ stdcall SleepConditionVariableSRW(ptr ptr long long)
@ stdcall SleepEx(long long)
@ stdcall SuspendThread(long)
@ stdcall SwitchToFiber(ptr)
...
...
dlls/kernel32/sync.c
View file @
72cf5d6f
...
...
@@ -2339,3 +2339,21 @@ BOOL WINAPI SleepConditionVariableCS( CONDITION_VARIABLE *variable, CRITICAL_SEC
}
return
TRUE
;
}
/***********************************************************************
* SleepConditionVariableSRW (KERNEL32.@)
*/
BOOL
WINAPI
SleepConditionVariableSRW
(
RTL_CONDITION_VARIABLE
*
variable
,
RTL_SRWLOCK
*
lock
,
DWORD
timeout
,
ULONG
flags
)
{
NTSTATUS
status
;
LARGE_INTEGER
time
;
status
=
RtlSleepConditionVariableSRW
(
variable
,
lock
,
get_nt_timeout
(
&
time
,
timeout
),
flags
);
if
(
status
!=
STATUS_SUCCESS
)
{
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
FALSE
;
}
return
TRUE
;
}
include/winbase.h
View file @
72cf5d6f
...
...
@@ -2363,6 +2363,7 @@ WINBASEAPI DWORD WINAPI SignalObjectAndWait(HANDLE,HANDLE,DWORD,BOOL);
WINBASEAPI
DWORD
WINAPI
SizeofResource
(
HMODULE
,
HRSRC
);
WINBASEAPI
VOID
WINAPI
Sleep
(
DWORD
);
WINBASEAPI
BOOL
WINAPI
SleepConditionVariableCS
(
PCONDITION_VARIABLE
,
PCRITICAL_SECTION
,
DWORD
);
WINBASEAPI
BOOL
WINAPI
SleepConditionVariableSRW
(
PCONDITION_VARIABLE
,
PSRWLOCK
,
DWORD
,
ULONG
);
WINBASEAPI
DWORD
WINAPI
SleepEx
(
DWORD
,
BOOL
);
WINBASEAPI
DWORD
WINAPI
SuspendThread
(
HANDLE
);
WINBASEAPI
void
WINAPI
SwitchToFiber
(
LPVOID
);
...
...
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