Finally adding thread wait so we kill the spin loop.

This commit is contained in:
Ben Vanik
2013-09-25 20:55:22 -07:00
parent d16ab71252
commit b0481472f2
9 changed files with 45 additions and 20 deletions

View File

@@ -36,10 +36,7 @@ KernelState::KernelState(Runtime* runtime) :
}
KernelState::~KernelState() {
if (executable_module_) {
executable_module_->Release();
executable_module_ = NULL;
}
SetExecutableModule(NULL);
// Delete all objects.
xe_mutex_free(object_mutex_);