Explicitly instantiate constructors/destructors for Kernel objects

This should speed up compile times a bit, as well as enable more liberal
use of forward declarations. (Due to SharedPtr not trying to emit the
destructor anymore.)
This commit is contained in:
Yuri Kunde Schlesner 2015-01-31 22:56:59 -02:00
parent 12232e0b08
commit 7725256f64
17 changed files with 51 additions and 8 deletions

View file

@ -17,6 +17,9 @@ static int timer_callback_event_type = -1;
// us to simply use a pool index or similar.
static Kernel::HandleTable timer_callback_handle_table;
Timer::Timer() {}
Timer::~Timer() {}
ResultVal<SharedPtr<Timer>> Timer::Create(ResetType reset_type, std::string name) {
SharedPtr<Timer> timer(new Timer);
// TOOD(yuriks): Don't create Handle (see Thread::Create())