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
5741991b
Commit
5741991b
authored
Mar 30, 2017
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add CurrentScheduler::Detach implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5f72ec06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
scheduler.c
dlls/msvcrt/scheduler.c
+24
-1
No files found.
dlls/msvcrt/scheduler.c
View file @
5741991b
...
...
@@ -802,7 +802,30 @@ void __cdecl CurrentScheduler_Create(const SchedulerPolicy *policy)
/* ?Detach@CurrentScheduler@Concurrency@@SAXXZ */
void
__cdecl
CurrentScheduler_Detach
(
void
)
{
FIXME
(
"() stub
\n
"
);
ExternalContextBase
*
context
=
(
ExternalContextBase
*
)
try_get_current_context
();
TRACE
(
"()
\n
"
);
if
(
!
context
)
throw_exception
(
EXCEPTION_IMPROPER_SCHEDULER_DETACH
,
0
,
NULL
);
if
(
context
->
context
.
vtable
!=
&
MSVCRT_ExternalContextBase_vtable
)
{
ERR
(
"unknown context set
\n
"
);
return
;
}
if
(
!
context
->
scheduler
.
next
)
throw_exception
(
EXCEPTION_IMPROPER_SCHEDULER_DETACH
,
0
,
NULL
);
call_Scheduler_Release
(
context
->
scheduler
.
scheduler
);
if
(
!
context
->
scheduler
.
next
)
{
context
->
scheduler
.
scheduler
=
NULL
;
}
else
{
struct
scheduler_list
*
entry
=
context
->
scheduler
.
next
;
context
->
scheduler
.
scheduler
=
entry
->
scheduler
;
context
->
scheduler
.
next
=
entry
->
next
;
MSVCRT_operator_delete
(
entry
);
}
}
static
void
create_default_scheduler
(
void
)
...
...
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