mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-06-21 13:22:40 +02:00
Updated threadCreate() usage in the misc examples for latest libnx.
This commit is contained in:
parent
68a9002b4a
commit
188b41ff9e
@ -47,7 +47,7 @@ int main(int argc, char **argv)
|
|||||||
u64 i;
|
u64 i;
|
||||||
for (i=0; i<4; i++) {
|
for (i=0; i<4; i++) {
|
||||||
num_threads = i;
|
num_threads = i;
|
||||||
rc = threadCreate(&thread[i], threadFunc, (void*)i, 0x10000, 0x2C, -2);
|
rc = threadCreate(&thread[i], threadFunc, (void*)i, NULL, 0x10000, 0x2C, -2);
|
||||||
if (R_FAILED(rc))
|
if (R_FAILED(rc))
|
||||||
goto clean_up;
|
goto clean_up;
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
Thread thread;
|
Thread thread;
|
||||||
Result rc;
|
Result rc;
|
||||||
rc = threadCreate(&thread, threadFunc1, NULL, 0x10000, 0x2C, -2);
|
rc = threadCreate(&thread, threadFunc1, NULL, NULL, 0x10000, 0x2C, -2);
|
||||||
|
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
{
|
{
|
||||||
|
@ -59,7 +59,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
Thread thread;
|
Thread thread;
|
||||||
Result rc;
|
Result rc;
|
||||||
rc = threadCreate(&thread, threadFunc1, NULL, 0x10000, 0x2C, -2);
|
rc = threadCreate(&thread, threadFunc1, NULL, NULL, 0x10000, 0x2C, -2);
|
||||||
|
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user