mirror of
https://github.com/wiiu-env/FunctionPatcherModule.git
synced 2025-06-14 12:58:32 +02:00
Avoid using the "new" operator to reduce the filesize
This commit is contained in:
@ -53,9 +53,8 @@ public:
|
|||||||
int32_t aff[] = {CThread::eAttributeAffCore2, CThread::eAttributeAffCore1, CThread::eAttributeAffCore0};
|
int32_t aff[] = {CThread::eAttributeAffCore2, CThread::eAttributeAffCore1, CThread::eAttributeAffCore0};
|
||||||
|
|
||||||
for (int i: aff) {
|
for (int i: aff) {
|
||||||
CThread *thread = CThread::create(callback, callbackArg, iAttr | i, iPriority, iStackSize);
|
CThread thread(iAttr | i, iPriority, iStackSize, callback, callbackArg);
|
||||||
thread->resumeThread();
|
thread.resumeThread();
|
||||||
delete thread;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,7 +110,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
//! Shutdown thread
|
//! Shutdown thread
|
||||||
virtual void shutdownThread() {
|
void shutdownThread() {
|
||||||
//! wait for thread to finish
|
//! wait for thread to finish
|
||||||
if (pThread && !(iAttributes & eAttributeDetach)) {
|
if (pThread && !(iAttributes & eAttributeDetach)) {
|
||||||
while (isThreadSuspended()) {
|
while (isThreadSuspended()) {
|
||||||
|
Reference in New Issue
Block a user