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
e704c445
Commit
e704c445
authored
Aug 17, 2022
by
Torge Matthies
Committed by
Alexandre Julliard
Aug 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr100: Factor out the mapping of a context to a scheduler.
Signed-off-by:
Torge Matthies
<
tmatthies@codeweavers.com
>
parent
a115feab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
concurrency.c
dlls/msvcrt/concurrency.c
+19
-10
No files found.
dlls/msvcrt/concurrency.c
View file @
e704c445
...
...
@@ -697,29 +697,38 @@ static Context* get_current_context(void)
return
ret
;
}
static
Scheduler
*
get_scheduler_from_context
(
Context
*
ctx
)
{
ExternalContextBase
*
context
=
(
ExternalContextBase
*
)
ctx
;
if
(
context
->
context
.
vtable
!=
&
ExternalContextBase_vtable
)
return
NULL
;
return
context
->
scheduler
.
scheduler
;
}
static
Scheduler
*
try_get_current_scheduler
(
void
)
{
ExternalContextBase
*
context
=
(
ExternalContextBase
*
)
try_get_current_context
();
Context
*
context
=
try_get_current_context
();
Scheduler
*
ret
;
if
(
!
context
)
return
NULL
;
if
(
context
->
context
.
vtable
!=
&
ExternalContextBase_vtable
)
{
ret
=
get_scheduler_from_context
(
context
);
if
(
!
ret
)
ERR
(
"unknown context set
\n
"
);
return
NULL
;
}
return
context
->
scheduler
.
scheduler
;
return
ret
;
}
static
Scheduler
*
get_current_scheduler
(
void
)
{
ExternalContextBase
*
context
=
(
ExternalContextBase
*
)
get_current_context
();
Context
*
context
=
get_current_context
();
Scheduler
*
ret
;
if
(
context
->
context
.
vtable
!=
&
ExternalContextBase_vtable
)
{
ret
=
get_scheduler_from_context
(
context
);
if
(
!
ret
)
ERR
(
"unknown context set
\n
"
);
return
NULL
;
}
return
context
->
scheduler
.
scheduler
;
return
ret
;
}
/* ?CurrentContext@Context@Concurrency@@SAPAV12@XZ */
...
...
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