|
libnx
|
Multi-threading support. More...
#include "../types.h"Go to the source code of this file.
Data Structures | |
| struct | Thread |
| Thread information structure. More... | |
Functions | |
| Result | threadCreate (Thread *t, ThreadFunc entry, void *arg, size_t stack_sz, int prio, int cpuid) |
| Creates a thread. More... | |
| Result | threadStart (Thread *t) |
| Starts the execution of a thread. More... | |
| Result | threadWaitForExit (Thread *t) |
| Waits for a thread to finish executing. More... | |
| Result | threadClose (Thread *t) |
| Frees up resources associated with a thread. More... | |
| Result | threadPause (Thread *t) |
| Pauses the execution of a thread. More... | |
| Result | threadResume (Thread *t) |
| Resumes the execution of a thread, after having been paused. More... | |
Multi-threading support.
Frees up resources associated with a thread.
| t | Thread information structure. |
| Result threadCreate | ( | Thread * | t, |
| ThreadFunc | entry, | ||
| void * | arg, | ||
| size_t | stack_sz, | ||
| int | prio, | ||
| int | cpuid | ||
| ) |
Creates a thread.
| t | Thread information structure which will be filled in. |
| entry | Entrypoint of the thread. |
| arg | Argument to pass to the entrypoint. |
| stack_sz | Stack size (rounded up to page alignment). |
| prio | Thread priority (0x00~0x3F); 0x2C is the usual priority of the main thread. |
| cpuid | ID of the core on which to create the thread (0~3); or -2 to use the default core for the current process. |
Pauses the execution of a thread.
| t | Thread information structure. |
Resumes the execution of a thread, after having been paused.
| t | Thread information structure. |
1.8.11