Implement a factory for kernel objects.

Couldn't think of a better way to do this, maybe there's some fancy
one I don't know about.

Also finished up a couple left over kernel objects.

Maybe a quarter the way there?
This commit is contained in:
Unknown W. Brackets committed 2012-12-28 13:55:22 -08:00
1 parent d9efdf548b
commit 595759ef78
26 files changed
+304 -17

No files matched your search

+10
View File
@@ -137,6 +137,16 @@ void __KernelMutexInit()
__KernelListenThreadEnd(&__KernelMutexThreadEnd);
}
KernelObject *__KernelMutexObject()
{
return new Mutex;
}
KernelObject *__KernelLwMutexObject()
{
return new LwMutex;
}
void __KernelMutexShutdown()
{
mutexHeldLocks.clear();