Threads endpoint
This endpoint is intended for managing threads.
Information about methods of the endpoint is provided in the table below.
Methods of the thread.Thread endpoint (kl.core.Thread interface)
Method | Method purpose and parameters | Potential danger of the method |
---|---|---|
| Purpose Creates a thread. Parameters
| Allows the following:
|
| Purpose Blocks a thread. Parameters
| Lets you lock a standard thread that has captured the synchronization entity expected by the real-time thread in whose context the interrupt is being handled. This could stop the handling of this interrupt by other processes. |
| Purpose Resumes a thread. Parameters
| N/A |
| Purpose Terminates a thread. Parameters
| N/A |
| Purpose Terminates the current thread. Parameters
| N/A |
| Purpose Locks the current thread until the defined thread is terminated. Parameters
| N/A |
| Purpose Defines the priority of a thread. Parameters
| Allows the priority of a thread to be elevated to reduce the CPU time available to all other threads, including from other processes. It is recommended to monitor thread priority. |
| Purpose Allows access to the local memory of the current thread (TLS of the current thread). Parameters
| N/A |
| Purpose Defines the base address of the local memory of the current thread (TLS of the current thread). Parameters
| N/A |
| Purpose Locks the current thread for the specified duration. Parameters
| N/A |
| Purpose Lets you get information about a thread. Parameters
| N/A |
| Purpose Detaches the current thread from the interrupt handled in its context. Parameters
| N/A |
| Purpose Lets you get a thread affinity mask. Parameters
| N/A |
| Purpose Defines a thread affinity mask. Parameters
| N/A |
| Purpose Defines the thread scheduler class. Parameters
| Allows the following:
|
| Purpose Lets you get information about the thread scheduler class. Parameters
| N/A |