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
118271c5
Commit
118271c5
authored
Mar 28, 2017
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add ThreadScheduler::Id implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5debf060
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
scheduler.c
dlls/msvcrt/scheduler.c
+5
-2
No files found.
dlls/msvcrt/scheduler.c
View file @
118271c5
...
...
@@ -34,6 +34,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
static
int
context_id
=
-
1
;
static
int
scheduler_id
=
-
1
;
#ifdef __i386__
...
...
@@ -109,6 +110,7 @@ typedef struct {
typedef
struct
{
Scheduler
scheduler
;
unsigned
int
id
;
SchedulerPolicy
policy
;
}
ThreadScheduler
;
extern
const
vtable_ptr
MSVCRT_ThreadScheduler_vtable
;
...
...
@@ -519,8 +521,8 @@ void __thiscall SchedulerPolicy_dtor(SchedulerPolicy *this)
DEFINE_THISCALL_WRAPPER
(
ThreadScheduler_Id
,
4
)
unsigned
int
__thiscall
ThreadScheduler_Id
(
const
ThreadScheduler
*
this
)
{
FIXME
(
"(%p) stub
\n
"
,
this
);
return
0
;
TRACE
(
"(%p)
\n
"
,
this
);
return
this
->
id
;
}
DEFINE_THISCALL_WRAPPER
(
ThreadScheduler_GetNumberOfVirtualProcessors
,
4
)
...
...
@@ -632,6 +634,7 @@ static ThreadScheduler* ThreadScheduler_ctor(ThreadScheduler *this,
TRACE
(
"(%p)->()
\n
"
,
this
);
this
->
scheduler
.
vtable
=
&
MSVCRT_ThreadScheduler_vtable
;
this
->
id
=
InterlockedIncrement
(
&
scheduler_id
);
SchedulerPolicy_copy_ctor
(
&
this
->
policy
,
policy
);
return
this
;
}
...
...
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