Basic implementation of events.

This commit is contained in:
Ben Vanik
2013-09-24 21:26:45 -07:00
parent 474ecea277
commit 8424a668bf
10 changed files with 314 additions and 33 deletions

View File

@@ -32,6 +32,7 @@ KernelState::KernelState(Runtime* runtime) :
filesystem_ = runtime->filesystem();
object_table_ = new ObjectTable();
object_mutex_ = xe_mutex_alloc(10000);
}
KernelState::~KernelState() {
@@ -41,6 +42,7 @@ KernelState::~KernelState() {
}
// Delete all objects.
xe_mutex_free(object_mutex_);
delete object_table_;
filesystem_.reset();