2017-03-22 17:23:29 +00:00
|
|
|
/* Concurrency C implementation bits.
|
|
|
|
*
|
2017-04-06 18:14:52 +00:00
|
|
|
* This file is part of libostd. See COPYING.md for futher information.
|
2017-03-22 17:23:29 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "ostd/concurrency.hh"
|
|
|
|
|
|
|
|
namespace ostd {
|
|
|
|
|
2018-01-05 21:31:04 +00:00
|
|
|
/* place the vtable in here */
|
|
|
|
coroutine_error::~coroutine_error() {}
|
|
|
|
|
|
|
|
/* non-inline for vtable placement */
|
|
|
|
coroutine_context::~coroutine_context() {
|
|
|
|
unwind();
|
|
|
|
free_stack();
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace detail {
|
|
|
|
/* place the vtable here, derived from coroutine_context */
|
|
|
|
csched_task::~csched_task() {}
|
2017-03-22 17:23:29 +00:00
|
|
|
|
2018-01-05 21:31:04 +00:00
|
|
|
OSTD_EXPORT scheduler *current_scheduler = nullptr;
|
|
|
|
OSTD_EXPORT thread_local csched_task *current_csched_task = nullptr;
|
2017-03-22 17:23:29 +00:00
|
|
|
} /* namespace detail */
|
2018-01-05 21:31:04 +00:00
|
|
|
|
|
|
|
scheduler::~scheduler() {}
|
|
|
|
|
2017-03-22 17:23:29 +00:00
|
|
|
} /* namespace ostd */
|