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 Creates the handle of the calling thread. Parameters
| N/A |
| Purpose Locks the calling thread. Parameters
| Locks a thread that has captured a synchronization object that was created in shared memory and is anticipated by a thread of another process. As a result, the thread of the other process may be locked indefinitely. |
| Purpose Resumes execution of a locked thread. Parameters
| N/A |
| Purpose Terminates a thread. Parameters
| N/A |
| Purpose Terminates the calling thread. Parameters
| N/A |
| Purpose Locks the calling 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 Defines the base address of the Thread Local Storage (TLS) for the calling thread. Parameters
| N/A |
| Purpose Locks the calling thread for the specified duration. Parameters
| N/A |
| Purpose Gets information about a thread. Parameters
| N/A |
| Purpose Detaches the calling thread from the interrupt handled in its context. Parameters
| N/A |
| Purpose Gets a thread affinity mask. Parameters
| N/A |
| Purpose Defines a thread affinity mask. Parameters
| N/A |
| Purpose Defines the scheduler class and priority of the thread. Parameters
| Allows the following:
|
| Purpose Gets information about the scheduler class and priority of a thread. Parameters
| N/A |