mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
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:
1 parent
d9efdf548b
commit
595759ef78
26 files changed
+304
-17
No files matched your search
@@ -137,6 +137,16 @@ void __KernelMutexInit()
|
||||
__KernelListenThreadEnd(&__KernelMutexThreadEnd);
|
||||
}
|
||||
|
||||
KernelObject *__KernelMutexObject()
|
||||
{
|
||||
return new Mutex;
|
||||
}
|
||||
|
||||
KernelObject *__KernelLwMutexObject()
|
||||
{
|
||||
return new LwMutex;
|
||||
}
|
||||
|
||||
void __KernelMutexShutdown()
|
||||
{
|
||||
mutexHeldLocks.clear();
|
||||
|
||||
Reference in new issue
Block a user