libostd/src/concurrency.cc

35 lines
804 B
C++
Raw Normal View History

/* Concurrency C implementation bits.
*
2017-04-06 20:14:52 +02:00
* This file is part of libostd. See COPYING.md for futher information.
*/
#include "ostd/concurrency.hh"
namespace ostd {
2018-01-05 22:31:04 +01:00
/* place the vtable in here */
coroutine_error::~coroutine_error() {}
namespace detail {
/* place the vtable in here */
stack_free_iface::~stack_free_iface() {}
} /* namespace detail */
2018-01-05 22:31:04 +01:00
/* 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() {}
2018-01-05 22:31:04 +01:00
OSTD_EXPORT scheduler *current_scheduler = nullptr;
OSTD_EXPORT thread_local csched_task *current_csched_task = nullptr;
} /* namespace detail */
2018-01-05 22:31:04 +01:00
scheduler::~scheduler() {}
} /* namespace ostd */