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
6ad1e9a9
Commit
6ad1e9a9
authored
Apr 03, 2017
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Improve CurrentScheduler::Get implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2d4be5cb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
scheduler.c
dlls/msvcrt/scheduler.c
+12
-15
No files found.
dlls/msvcrt/scheduler.c
View file @
6ad1e9a9
...
...
@@ -196,6 +196,17 @@ static Scheduler* try_get_current_scheduler(void)
return
context
->
scheduler
.
scheduler
;
}
static
Scheduler
*
get_current_scheduler
(
void
)
{
ExternalContextBase
*
context
=
(
ExternalContextBase
*
)
get_current_context
();
if
(
context
->
context
.
vtable
!=
&
MSVCRT_ExternalContextBase_vtable
)
{
ERR
(
"unknown context set
\n
"
);
return
NULL
;
}
return
context
->
scheduler
.
scheduler
;
}
/* ?CurrentContext@Context@Concurrency@@SAPAV12@XZ */
/* ?CurrentContext@Context@Concurrency@@SAPEAV12@XZ */
Context
*
__cdecl
Context_CurrentContext
(
void
)
...
...
@@ -867,22 +878,8 @@ static void create_default_scheduler(void)
/* ?Get@CurrentScheduler@Concurrency@@SAPEAVScheduler@2@XZ */
Scheduler
*
__cdecl
CurrentScheduler_Get
(
void
)
{
ExternalContextBase
*
context
=
(
ExternalContextBase
*
)
get_current_context
();
TRACE
(
"()
\n
"
);
if
(
context
->
context
.
vtable
!=
&
MSVCRT_ExternalContextBase_vtable
)
{
ERR
(
"unknown context set
\n
"
);
return
NULL
;
}
if
(
context
->
scheduler
.
scheduler
)
return
context
->
scheduler
.
scheduler
;
create_default_scheduler
();
context
->
scheduler
.
scheduler
=
&
default_scheduler
->
scheduler
;
call_Scheduler_Reference
(
&
default_scheduler
->
scheduler
);
return
&
default_scheduler
->
scheduler
;
return
get_current_scheduler
();
}
/* ?CreateScheduleGroup@CurrentScheduler@Concurrency@@SAPAVScheduleGroup@2@AAVlocation@2@@Z */
...
...
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