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
d56984a0
Commit
d56984a0
authored
Jul 01, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jul 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement TpSetPoolMaxThreads.
parent
db9fc914
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-0
threadpool.c
dlls/ntdll/threadpool.c
+15
-0
No files found.
dlls/ntdll/ntdll.spec
View file @
d56984a0
...
...
@@ -972,6 +972,7 @@
@ stdcall RtlxUnicodeStringToOemSize(ptr) RtlUnicodeStringToOemSize
@ stdcall TpAllocPool(ptr ptr)
@ stdcall TpReleasePool(ptr)
@ stdcall TpSetPoolMaxThreads(ptr long)
@ stdcall TpSimpleTryPost(ptr ptr ptr)
@ stdcall -ret64 VerSetConditionMask(int64 long long)
@ stdcall WinSqmIsOptedIn()
...
...
dlls/ntdll/threadpool.c
View file @
d56984a0
...
...
@@ -1466,6 +1466,21 @@ VOID WINAPI TpReleasePool( TP_POOL *pool )
}
/***********************************************************************
* TpSetPoolMaxThreads (NTDLL.@)
*/
VOID
WINAPI
TpSetPoolMaxThreads
(
TP_POOL
*
pool
,
DWORD
maximum
)
{
struct
threadpool
*
this
=
impl_from_TP_POOL
(
pool
);
TRACE
(
"%p %u
\n
"
,
pool
,
maximum
);
RtlEnterCriticalSection
(
&
this
->
cs
);
this
->
max_workers
=
max
(
maximum
,
1
);
this
->
min_workers
=
min
(
this
->
min_workers
,
this
->
max_workers
);
RtlLeaveCriticalSection
(
&
this
->
cs
);
}
/***********************************************************************
* TpSimpleTryPost (NTDLL.@)
*/
NTSTATUS
WINAPI
TpSimpleTryPost
(
PTP_SIMPLE_CALLBACK
callback
,
PVOID
userdata
,
...
...
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