Commit Graph

65 Commits

Author SHA1 Message Date
Alexandre Julliard 09f588ee69 kernel32: Move some process functions to kernelbase.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-09 15:24:52 +02:00
Alexandre Julliard f2e7e1658b kernel32: Move more thread functions to kernelbase.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-09 14:49:48 +02:00
Alexandre Julliard 296da1fbb1 kernel32: Move thread pool functions to kernelbase.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-08 17:53:35 +02:00
Alexandre Julliard 0116660dd8 kernel32: Move thread functions to kernelbase.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-08 17:53:35 +02:00
Alexandre Julliard 32fdffac42 include: Implement some inline functions in C instead of assembly.
This way the same code can be used on all platforms.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-26 23:08:53 +02:00
Alexandre Julliard d5a372abbb include: Move inline assembly definitions to a new wine/asm.h header.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 13:45:07 +02:00
Jacek Caban c448550e74 ntoskrnl.exe/tests: Add more NtOpenThread tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-23 23:50:45 +02:00
André Hentschel ee9f2c62d5 kernel32: Implement GetCurrentThreadStackLimits.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46179
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-26 16:41:47 +01:00
Alexandre Julliard 4a328e08ac server: Allow specifying the security descriptor for a new thread.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-20 13:06:12 +02:00
Zebediah Figura 2c551a9054 kernel32: Implement Wow64SetThreadContext().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-12 14:01:35 +02:00
Zebediah Figura e50c507cf6 kernel32: Implement Wow64GetThreadContext().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-12 14:01:35 +02:00
Nikolay Sivov 32617e814a kernel32: Add CreateRemoteThreadEx().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-26 11:26:12 +01:00
Andrey Gusev cf415c62ed kernel32: Add CreateThreadpoolIo stub.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-24 16:48:03 +01:00
Sebastian Lackner dc43ed435f kernel32: Add missing WINAPI to SetThreadIdealProcessorEx implementation.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-30 11:14:29 +02:00
Austin English 980754bff7 kernel32: Add SetThreadIdealProcessorEx stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-24 17:55:47 +02:00
Piotr Caban 05ab8b98be ntdll: Add stub implementation of NtQueryInformationThread(ThreadIsIoPending).
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-08 10:53:32 +01:00
Ken Thomases 2e636d4fe8 kernel32: For Mac 64-bit, re-enable the inlining of various functions, leveraging the TEB self pointer at %gs:0x30.
On other platforms, gsbase is set to point to Wine's TEB.  So, these functions
can use %gs-relative addressing with the field offsets to access the fields of
the TEB.

On the Mac, gsbase points to internals of the pthread implementation and that
wouldn't work.  However, Wine hijacks %gs:0x30 and stores the TEB address there.
So, we access the TEB fields by first loading the TEB address and then
accessing its fields relative to that.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-28 21:38:02 +09:00
Hans Leidekker c90845cf93 kernel32: Improve the stub for GetThreadPreferredUILanguages.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 20:30:57 +09:00
Michael Müller 9d58aac467 kernel32: Implement Set/GetThreadGroupAffinity and add tests.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-02 18:11:31 +09:00
Sebastian Lackner 6c586d5db8 kernel32: Forward threadpool wait functions to ntdll. 2015-07-06 14:49:39 +09:00
Sebastian Lackner eadd27a38a kernel32: Forward remaining threadpool functions to ntdll. 2015-07-03 13:08:20 +09:00
Sebastian Lackner 56b9af1150 kernel32: Forward threadpool instance functions to ntdll. 2015-07-03 13:08:05 +09:00
Sebastian Lackner 4b0ecd3e22 kernel32: Forward threadpool timer functions to ntdll. 2015-07-03 13:07:47 +09:00
Sebastian Lackner 1165cc0953 kernel32: Forward threadpool work functions to ntdll. 2015-07-03 13:07:37 +09:00
Sebastian Lackner a54d972868 kernel32: Forward threadpool cleanup group functions to ntdll. 2015-07-03 13:07:18 +09:00
Nikolay Sivov 85a3d09329 kernel32: Implement GetProcessIdOfThread(). 2015-03-20 21:31:57 +09:00
Charles Davis 193d15cc3c kernel32: Don't use %gs on 64-bit Mac OS. 2015-01-23 11:11:37 +01:00
Sebastian Lackner cfd09b0967 ntdll: Fix leaking activation context when terminating via exit_thread(). (Valgrind). 2014-06-23 10:17:26 +02:00
Alexandre Julliard 4af4df5af3 ntdll: Add stubs for the SRW lock functions. 2013-09-03 16:58:19 +02:00
Dan Kegel 073d7212a7 kernel32: Make SetThreadPriorityBoost return success. 2013-05-28 14:54:49 +02:00
Dan Kegel db48235880 kernel32: Quiet an extremely verbose stub fixme. 2012-06-11 11:27:24 +02:00
Daniel Jelinski 53b551440c kernel32: Make SetThreadStackGuarantee stub return TRUE. 2012-06-01 13:24:47 +02:00
André Hentschel 5e5b435e7d kernel32: Add stub for SetThreadStackGuarantee. 2012-05-29 10:44:28 +02:00
Louis Lenders 3f1b41ebb2 kernel32: Add stubs for several SRW lock functions. 2011-10-13 19:57:19 +02:00
Louis Lenders e24438c1d1 kernel32: Add stub for GetThreadPreferredUILanguages. 2011-10-12 17:07:32 +02:00
Bernhard Loos 4e4bdbe53e kernel32: Make CreateThread hotpatchable. 2011-08-22 19:49:39 +02:00
Austin English cad8afb8ee kernel32: Add a stub for SetThreadPreferredUILanguages. 2011-04-25 13:03:07 +02:00
Hans Leidekker 06562d16b3 kernel32: Add a stub implementation of GetThreadIOPendingFlag. 2011-01-10 10:42:23 +01:00
Austin English 4be494c081 kernel32: Add a stub for GetThreadUILanguage. 2010-09-08 13:23:05 +02:00
Alexandre Julliard 383879f686 kernel32: Add an x86_64 implementation for the TEB access functions. 2010-05-07 14:15:25 +02:00
Alexandre Julliard 18dbaadfc5 kernel32: Define GetProcessHeap as an assembler function on i386. 2010-05-07 14:07:45 +02:00
Peter Rosin 678cb27b3a kernel32: Document SetThreadErrorMode and GetThreadErrorMode. 2010-02-05 10:07:40 +01:00
Peter Rosin 805f7d79db kernel32: Add SetThreadErrorMode and GetThreadErrorMode. 2010-02-04 13:39:27 +01:00
Alexandre Julliard 8268ed9783 kernel32: Do not include 16-bit headers in 32-bit files. 2009-12-30 16:21:56 +01:00
Alexandre Julliard b6e0b3428d kernel32: Move the 16-bit thread and process functions to kernel16.c. 2009-10-08 11:11:45 +02:00
Alexandre Julliard fe2c157fe9 kernel32: Move the 16-bit error functions to error16.c. 2009-10-08 11:10:08 +02:00
Alexandre Julliard b088cc5781 kernel32: Moved GetThreadSelectorEntry to thread.c. 2009-09-28 19:58:45 +02:00
Alexandre Julliard cb0607ced2 kernel32: Fix the GetThreadPriorityBoost return value. 2009-08-29 16:48:54 +02:00
Andrew Nguyen 20276d0b38 kernel32: Revise SetThreadIdealProcessor to return success. 2009-08-07 14:57:31 +02:00
Alexandre Julliard d303d9dc29 kernel32: Add appropriate stdcall decorations to assembly functions. 2009-06-15 13:42:26 +02:00