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
03f4e223
Commit
03f4e223
authored
Apr 02, 2002
by
Geoffrey Hausheer
Committed by
Alexandre Julliard
Apr 02, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for thread functions.
parent
7ec41ed9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
2 deletions
+22
-2
Makefile.in
dlls/kernel/Makefile.in
+2
-1
kernel32.spec
dlls/kernel/kernel32.spec
+1
-1
.cvsignore
dlls/kernel/tests/.cvsignore
+1
-0
thread.c
dlls/kernel/tests/thread.c
+0
-0
winbase.h
include/winbase.h
+2
-0
winnt.h
include/winnt.h
+1
-0
thread.c
scheduler/thread.c
+15
-0
No files found.
dlls/kernel/Makefile.in
View file @
03f4e223
...
...
@@ -41,7 +41,8 @@ EXTRASUBDIRS = \
CTESTS
=
\
tests/alloc.c
\
tests/directory.c
tests/directory.c
\
tests/thread.c
PLTESTS
=
\
tests/atom.pl
...
...
dlls/kernel/kernel32.spec
View file @
03f4e223
...
...
@@ -940,7 +940,7 @@ debug_channels (comm console debugstr dll int resource stress thunk toolhelp
@ stdcall SetConsoleInputExeNameW(ptr) SetConsoleInputExeNameW
@ stdcall SetProcessAffinityMask(long long) SetProcessAffinityMask
@ stdcall SetProcessPriorityBoost(long long) SetProcessPriorityBoost
@ st
ub
SetThreadIdealProcessor
@ st
dcall SetThreadIdealProcessor(long long)
SetThreadIdealProcessor
@ stdcall SetThreadPriorityBoost(long long) SetThreadPriorityBoost
@ stdcall SetWaitableTimer(long ptr long ptr ptr long) SetWaitableTimer
@ stub SignalObjectAndWait
...
...
dlls/kernel/tests/.cvsignore
View file @
03f4e223
alloc.ok
atom.ok
directory.ok
thread.ok
kernel32_test.spec.c
testlist.c
dlls/kernel/tests/thread.c
0 → 100644
View file @
03f4e223
This diff is collapsed.
Click to expand it.
include/winbase.h
View file @
03f4e223
...
...
@@ -1255,6 +1255,7 @@ DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
BOOL
WINAPI
GetNumberOfEventLogRecords
(
HANDLE
,
PDWORD
);
BOOL
WINAPI
GetOldestEventLogRecord
(
HANDLE
,
PDWORD
);
DWORD
WINAPI
GetPriorityClass
(
HANDLE
);
BOOL
WINAPI
GetProcessAffinityMask
(
HANDLE
,
PDWORD
,
PDWORD
);
BOOL
WINAPI
GetProcessTimes
(
HANDLE
,
LPFILETIME
,
LPFILETIME
,
LPFILETIME
,
LPFILETIME
);
DWORD
WINAPI
GetProcessVersion
(
DWORD
);
BOOL
WINAPI
GetSecurityDescriptorControl
(
PSECURITY_DESCRIPTOR
,
PSECURITY_DESCRIPTOR_CONTROL
,
LPDWORD
);
...
...
@@ -1416,6 +1417,7 @@ DWORD WINAPI SetTapePosition(HANDLE,DWORD,DWORD,DWORD,DWORD,BOOL);
DWORD
WINAPI
SetThreadAffinityMask
(
HANDLE
,
DWORD
);
BOOL
WINAPI
SetThreadContext
(
HANDLE
,
const
CONTEXT
*
);
DWORD
WINAPI
SetThreadExecutionState
(
EXECUTION_STATE
);
DWORD
WINAPI
SetThreadIdealProcessor
(
HANDLE
,
DWORD
);
BOOL
WINAPI
SetThreadPriority
(
HANDLE
,
INT
);
BOOL
WINAPI
SetThreadPriorityBoost
(
HANDLE
,
BOOL
);
BOOL
WINAPI
SetThreadToken
(
PHANDLE
,
HANDLE
);
...
...
include/winnt.h
View file @
03f4e223
...
...
@@ -460,6 +460,7 @@ typedef HANDLE *PHANDLE, *LPHANDLE;
#define PROCESSOR_ARM920 2336
/* 0x920 */
#define PROCESSOR_ARM_7TDMI 70001
#define MAXIMUM_PROCESSORS 32
typedef
struct
_MEMORY_BASIC_INFORMATION
{
LPVOID
BaseAddress
;
...
...
scheduler/thread.c
View file @
03f4e223
...
...
@@ -549,6 +549,21 @@ DWORD WINAPI SetThreadAffinityMask( HANDLE hThread, DWORD dwThreadAffinityMask )
return
ret
;
}
/**********************************************************************
* SetThreadIdealProcessor [KERNEL32.@] Obtains timing information.
*
* RETURNS
* Success: Value of last call to SetThreadIdealProcessor
* Failure: -1
*/
DWORD
WINAPI
SetThreadIdealProcessor
(
HANDLE
hThread
,
/* [in] Specifies the thread of interest */
DWORD
dwIdealProcessor
)
/* [in] Specifies the new preferred processor */
{
FIXME
(
"(0x%08x): stub
\n
"
,
hThread
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
-
1L
;
}
/**********************************************************************
* TerminateThread [KERNEL32.@] Terminates a thread
...
...
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