Better wrapper system, and fixed warnings

This commit is contained in:
Arthur Blot committed 2012-11-04 15:08:23 +01:00
1 parent a54dcbedc1
commit a00b1855cb
34 files changed
+708 -683

No files matched your search

+7 -7
View File
@@ -318,10 +318,10 @@ void __KernelNotifyCallback(SceUID threadID, SceUID cbid, u32 notifyArg)
return;
}
}
CallbackNotification cb;
cb.cbid = cbid;
cb.arg = notifyArg;
cb.count = 1;
//CallbackNotification cb;
//cb.cbid = cbid;
//cb.arg = notifyArg;
//cb.count = 1;
}
// TODO: error checking
}
@@ -449,7 +449,7 @@ void __KernelLoadContext(ThreadContext *ctx)
// If any changes were made, it will context switch
bool __KernelTriggerWait(WaitType type, int id, bool dontSwitch)
{
bool doneAnything = false;
//bool doneAnything = false;
for (std::vector<Thread *>::iterator iter = threadqueue.begin(); iter != threadqueue.end(); iter++)
{
@@ -464,7 +464,7 @@ bool __KernelTriggerWait(WaitType type, int id, bool dontSwitch)
{
t->nt.status = THREADSTATUS_READY;
}
doneAnything = true;
//doneAnything = true;
}
}
}
@@ -536,7 +536,7 @@ void __KernelScheduleWakeup(SceUID threadID, int usFromNow)
void __KernelRemoveFromThreadQueue(Thread *t)
{
for (int i = 0; i < threadqueue.size(); i++)
for (u32 i = 0; i < threadqueue.size(); i++)
{
if (threadqueue[i] == t)
{