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
02b74d3f
Commit
02b74d3f
authored
May 17, 2012
by
Detlef Riekenberg
Committed by
Alexandre Julliard
May 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement NtGetCurrentProcessorNumber.
parent
6c51c1ba
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
0 deletions
+28
-0
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-0
thread.c
dlls/ntdll/thread.c
+17
-0
winbase.h
include/winbase.h
+2
-0
winnt.h
include/winnt.h
+7
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
02b74d3f
...
...
@@ -498,6 +498,7 @@
@ stdcall GetCurrentDirectoryW(long ptr)
@ stdcall GetCurrentProcess()
@ stdcall GetCurrentProcessId()
@ stdcall GetCurrentProcessorNumber() ntdll.NtGetCurrentProcessorNumber
@ stdcall GetCurrentThread()
@ stdcall GetCurrentThreadId()
@ stdcall GetDateFormatA(long long ptr str ptr long)
...
...
dlls/ntdll/ntdll.spec
View file @
02b74d3f
...
...
@@ -176,6 +176,7 @@
@ stdcall NtFreeVirtualMemory(long ptr ptr long)
@ stdcall NtFsControlFile(long long long long long long long long long long)
@ stdcall NtGetContextThread(long ptr)
@ stdcall NtGetCurrentProcessorNumber()
# @ stub NtGetDevicePowerState
@ stub NtGetPlugPlayEvent
@ stdcall NtGetTickCount()
...
...
dlls/ntdll/thread.c
View file @
02b74d3f
...
...
@@ -1173,3 +1173,20 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class,
return
STATUS_NOT_IMPLEMENTED
;
}
}
/******************************************************************************
* NtGetCurrentProcessorNumber (NTDLL.@)
*
* Return the processor, on which the thread is running
*
*/
ULONG
WINAPI
NtGetCurrentProcessorNumber
(
void
)
{
if
(
NtCurrentTeb
()
->
Peb
->
NumberOfProcessors
>
1
)
{
FIXME
(
"need multicore support (%d processors)
\n
"
,
NtCurrentTeb
()
->
Peb
->
NumberOfProcessors
);
}
/* fallback to the first processor */
return
0
;
}
include/winbase.h
View file @
02b74d3f
...
...
@@ -1634,6 +1634,8 @@ WINADVAPI BOOL WINAPI GetCurrentHwProfileA(LPHW_PROFILE_INFOA);
WINADVAPI
BOOL
WINAPI
GetCurrentHwProfileW
(
LPHW_PROFILE_INFOW
);
#define GetCurrentHwProfile WINELIB_NAME_AW(GetCurrentHwProfile)
WINBASEAPI
HANDLE
WINAPI
GetCurrentProcess
(
void
);
WINBASEAPI
DWORD
WINAPI
GetCurrentProcessorNumber
(
void
);
WINBASEAPI
VOID
WINAPI
GetCurrentProcessorNumberEx
(
PPROCESSOR_NUMBER
);
WINBASEAPI
HANDLE
WINAPI
GetCurrentThread
(
void
);
#define GetCurrentTime() GetTickCount()
WINBASEAPI
BOOL
WINAPI
GetDefaultCommConfigA
(
LPCSTR
,
LPCOMMCONFIG
,
LPDWORD
);
...
...
include/winnt.h
View file @
02b74d3f
...
...
@@ -5286,6 +5286,13 @@ typedef struct _GROUP_AFFINITY
WORD
Reserved
[
3
];
}
GROUP_AFFINITY
,
*
PGROUP_AFFINITY
;
typedef
struct
_PROCESSOR_NUMBER
{
WORD
Group
;
BYTE
Number
;
BYTE
Reserved
;
}
PROCESSOR_NUMBER
,
*
PPROCESSOR_NUMBER
;
typedef
struct
_PROCESSOR_RELATIONSHIP
{
BYTE
Flags
;
...
...
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