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
6c586d5d
Commit
6c586d5d
authored
Jul 05, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jul 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Forward threadpool wait functions to ntdll.
parent
00215697
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
4 deletions
+51
-4
kernel32.spec
dlls/kernel32/kernel32.spec
+4
-4
thread.c
dlls/kernel32/thread.c
+43
-0
winternl.h
include/winternl.h
+4
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
6c586d5d
...
...
@@ -233,7 +233,7 @@
@ stdcall CloseThreadpoolCleanupGroupMembers(ptr long ptr) ntdll.TpReleaseCleanupGroupMembers
# @ stub CloseThreadpoolIo
@ stdcall CloseThreadpoolTimer(ptr) ntdll.TpReleaseTimer
# @ stub CloseThreadpool
Wait
@ stdcall CloseThreadpoolWait(ptr) ntdll.TpRelease
Wait
@ stdcall CloseThreadpoolWork(ptr) ntdll.TpReleaseWork
@ stdcall CmdBatNotification(long)
@ stdcall CommConfigDialogA(str long ptr)
...
...
@@ -335,7 +335,7 @@
@ stdcall CreateThreadpoolCleanupGroup()
# @ stub CreateThreadpoolIo
@ stdcall CreateThreadpoolTimer(ptr ptr ptr)
# @ stub CreateThreadpoolWait
@ stdcall CreateThreadpoolWait(ptr ptr ptr)
@ stdcall CreateThreadpoolWork(ptr ptr ptr)
@ stdcall CreateTimerQueue ()
@ stdcall CreateTimerQueueTimer(ptr long ptr ptr long long long)
...
...
@@ -1457,7 +1457,7 @@
@ stdcall SetThreadpoolThreadMaximum(ptr long) ntdll.TpSetPoolMaxThreads
@ stdcall SetThreadpoolThreadMinimum(ptr long) ntdll.TpSetPoolMinThreads
@ stdcall SetThreadpoolTimer(ptr ptr long long)
# @ stub SetThreadpoolWait
@ stdcall SetThreadpoolWait(ptr long ptr)
@ stdcall SetTimeZoneInformation(ptr)
@ stub SetTimerQueueTimer
# @ stub -arch=x86_64 SetUmsThreadInformation
...
...
@@ -1572,7 +1572,7 @@
@ stdcall WaitForSingleObjectEx(long long long)
# @ stub WaitForThreadpoolIoCallbacks
@ stdcall WaitForThreadpoolTimerCallbacks(ptr long) ntdll.TpWaitForTimer
# @ stub WaitForThreadpoolWaitCallbacks
@ stdcall WaitForThreadpoolWaitCallbacks(ptr long) ntdll.TpWaitForWait
@ stdcall WaitForThreadpoolWorkCallbacks(ptr long) ntdll.TpWaitForWork
@ stdcall WaitNamedPipeA (str long)
@ stdcall WaitNamedPipeW (wstr long)
...
...
dlls/kernel32/thread.c
View file @
6c586d5d
...
...
@@ -942,6 +942,27 @@ PTP_TIMER WINAPI CreateThreadpoolTimer( PTP_TIMER_CALLBACK callback, PVOID userd
}
/***********************************************************************
* CreateThreadpoolWait (KERNEL32.@)
*/
PTP_WAIT
WINAPI
CreateThreadpoolWait
(
PTP_WAIT_CALLBACK
callback
,
PVOID
userdata
,
TP_CALLBACK_ENVIRON
*
environment
)
{
TP_WAIT
*
wait
;
NTSTATUS
status
;
TRACE
(
"%p, %p, %p
\n
"
,
callback
,
userdata
,
environment
);
status
=
TpAllocWait
(
&
wait
,
callback
,
userdata
,
environment
);
if
(
status
)
{
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
return
NULL
;
}
return
wait
;
}
/***********************************************************************
* CreateThreadpoolWork (KERNEL32.@)
*/
PTP_WORK
WINAPI
CreateThreadpoolWork
(
PTP_WORK_CALLBACK
callback
,
PVOID
userdata
,
...
...
@@ -982,6 +1003,28 @@ VOID WINAPI SetThreadpoolTimer( TP_TIMER *timer, FILETIME *due_time,
}
/***********************************************************************
* SetThreadpoolWait (KERNEL32.@)
*/
VOID
WINAPI
SetThreadpoolWait
(
TP_WAIT
*
wait
,
HANDLE
handle
,
FILETIME
*
due_time
)
{
LARGE_INTEGER
timeout
;
TRACE
(
"%p, %p, %p
\n
"
,
wait
,
handle
,
due_time
);
if
(
!
handle
)
{
due_time
=
NULL
;
}
else
if
(
due_time
)
{
timeout
.
u
.
LowPart
=
due_time
->
dwLowDateTime
;
timeout
.
u
.
HighPart
=
due_time
->
dwHighDateTime
;
}
TpSetWait
(
wait
,
handle
,
due_time
?
&
timeout
:
NULL
);
}
/***********************************************************************
* TrySubmitThreadpoolCallback (KERNEL32.@)
*/
BOOL
WINAPI
TrySubmitThreadpoolCallback
(
PTP_SIMPLE_CALLBACK
callback
,
PVOID
userdata
,
...
...
include/winternl.h
View file @
6c586d5d
...
...
@@ -2621,6 +2621,7 @@ NTSYSAPI NTSTATUS WINAPI RtlLargeIntegerToChar(const ULONGLONG *,ULONG,ULONG,PC
NTSYSAPI
NTSTATUS
WINAPI
TpAllocCleanupGroup
(
TP_CLEANUP_GROUP
**
);
NTSYSAPI
NTSTATUS
WINAPI
TpAllocPool
(
TP_POOL
**
,
PVOID
);
NTSYSAPI
NTSTATUS
WINAPI
TpAllocTimer
(
TP_TIMER
**
,
PTP_TIMER_CALLBACK
,
PVOID
,
TP_CALLBACK_ENVIRON
*
);
NTSYSAPI
NTSTATUS
WINAPI
TpAllocWait
(
TP_WAIT
**
,
PTP_WAIT_CALLBACK
,
PVOID
,
TP_CALLBACK_ENVIRON
*
);
NTSYSAPI
NTSTATUS
WINAPI
TpAllocWork
(
TP_WORK
**
,
PTP_WORK_CALLBACK
,
PVOID
,
TP_CALLBACK_ENVIRON
*
);
NTSYSAPI
void
WINAPI
TpCallbackLeaveCriticalSectionOnCompletion
(
TP_CALLBACK_INSTANCE
*
,
RTL_CRITICAL_SECTION
*
);
NTSYSAPI
NTSTATUS
WINAPI
TpCallbackMayRunLong
(
TP_CALLBACK_INSTANCE
*
);
...
...
@@ -2635,12 +2636,15 @@ NTSYSAPI void WINAPI TpReleaseCleanupGroup(TP_CLEANUP_GROUP *);
NTSYSAPI
void
WINAPI
TpReleaseCleanupGroupMembers
(
TP_CLEANUP_GROUP
*
,
BOOL
,
PVOID
);
NTSYSAPI
void
WINAPI
TpReleasePool
(
TP_POOL
*
);
NTSYSAPI
void
WINAPI
TpReleaseTimer
(
TP_TIMER
*
);
NTSYSAPI
void
WINAPI
TpReleaseWait
(
TP_WAIT
*
);
NTSYSAPI
void
WINAPI
TpReleaseWork
(
TP_WORK
*
);
NTSYSAPI
void
WINAPI
TpSetPoolMaxThreads
(
TP_POOL
*
,
DWORD
);
NTSYSAPI
BOOL
WINAPI
TpSetPoolMinThreads
(
TP_POOL
*
,
DWORD
);
NTSYSAPI
void
WINAPI
TpSetTimer
(
TP_TIMER
*
,
LARGE_INTEGER
*
,
LONG
,
LONG
);
NTSYSAPI
void
WINAPI
TpSetWait
(
TP_WAIT
*
,
HANDLE
,
LARGE_INTEGER
*
);
NTSYSAPI
NTSTATUS
WINAPI
TpSimpleTryPost
(
PTP_SIMPLE_CALLBACK
,
PVOID
,
TP_CALLBACK_ENVIRON
*
);
NTSYSAPI
void
WINAPI
TpWaitForTimer
(
TP_TIMER
*
,
BOOL
);
NTSYSAPI
void
WINAPI
TpWaitForWait
(
TP_WAIT
*
,
BOOL
);
NTSYSAPI
void
WINAPI
TpWaitForWork
(
TP_WORK
*
,
BOOL
);
/* Wine internal functions */
...
...
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