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
ddc7f300
Commit
ddc7f300
authored
Jan 05, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jan 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Forward condition variable functions to ntdll.
parent
5472b9f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
kernel32.spec
dlls/kernel32/kernel32.spec
+4
-0
sync.c
dlls/kernel32/sync.c
+18
-0
sync.c
dlls/kernel32/tests/sync.c
+2
-4
No files found.
dlls/kernel32/kernel32.spec
View file @
ddc7f300
...
...
@@ -750,6 +750,7 @@
@ stdcall InitOnceComplete(ptr long ptr)
@ stdcall InitOnceExecuteOnce(ptr ptr ptr ptr)
@ stdcall InitOnceInitialize(ptr) ntdll.RtlRunOnceInitialize
@ stdcall InitializeConditionVariable(ptr) ntdll.RtlInitializeConditionVariable
@ stdcall InitializeCriticalSection(ptr)
@ stdcall InitializeCriticalSectionAndSpinCount(ptr long)
@ stdcall InitializeCriticalSectionEx(ptr long long)
...
...
@@ -1194,6 +1195,7 @@
@ stdcall SignalObjectAndWait(long long long long)
@ stdcall SizeofResource(long long)
@ stdcall Sleep(long)
@ stdcall SleepConditionVariableCS(ptr ptr long)
@ stdcall SleepEx(long long)
@ stdcall SuspendThread(long)
@ stdcall SwitchToFiber(ptr)
...
...
@@ -1263,6 +1265,8 @@
@ stdcall WaitForSingleObjectEx(long long long)
@ stdcall WaitNamedPipeA (str long)
@ stdcall WaitNamedPipeW (wstr long)
@ stdcall WakeAllConditionVariable(ptr) ntdll.RtlWakeAllConditionVariable
@ stdcall WakeConditionVariable(ptr) ntdll.RtlWakeConditionVariable
@ stdcall WerRegisterFile(wstr long long)
@ stdcall WerRegisterMemoryBlock(ptr long)
@ stdcall WerRegisterRuntimeExceptionModule(wstr ptr)
...
...
dlls/kernel32/sync.c
View file @
ddc7f300
...
...
@@ -2321,3 +2321,21 @@ __ASM_STDCALL_FUNC(InterlockedDecrement, 4,
"ret $4"
)
#endif
/* __i386__ */
/***********************************************************************
* SleepConditionVariableCS (KERNEL32.@)
*/
BOOL
WINAPI
SleepConditionVariableCS
(
CONDITION_VARIABLE
*
variable
,
CRITICAL_SECTION
*
crit
,
DWORD
timeout
)
{
NTSTATUS
status
;
LARGE_INTEGER
time
;
status
=
RtlSleepConditionVariableCS
(
variable
,
crit
,
get_nt_timeout
(
&
time
,
timeout
)
);
if
(
status
!=
STATUS_SUCCESS
)
{
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
FALSE
;
}
return
TRUE
;
}
dlls/kernel32/tests/sync.c
View file @
ddc7f300
...
...
@@ -1477,8 +1477,7 @@ static void test_condvars_consumer_producer(void)
if
(
!
pInitializeConditionVariable
)
{
/* function is not yet in XP, only in newer Windows */
/* and not yet implemented in Wine for some days/weeks */
todo_wine
win_skip
(
"no condition variable support.
\n
"
);
win_skip
(
"no condition variable support.
\n
"
);
return
;
}
...
...
@@ -1640,8 +1639,7 @@ static void test_condvars_base(void) {
if
(
!
pInitializeConditionVariable
)
{
/* function is not yet in XP, only in newer Windows */
/* and not yet implemented in Wine for some days/weeks */
todo_wine
win_skip
(
"no condition variable support.
\n
"
);
win_skip
(
"no condition variable support.
\n
"
);
return
;
}
...
...
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