![]() |
NDEVR
API Documentation
|
Used to check for and resolve potential deadlocks or resource starvation across threads. More...
Protected Attributes | |
| Buffer< Thread * > | m_registered_threads |
| The list of threads being monitored for deadlocks. | |
| Protected Attributes inherited from Thread | |
| volatile bool | m_is_running = false |
| Whether the thread is currently running. | |
| volatile bool | m_is_single_run = true |
| Whether the thread should execute only once before stopping. | |
Additional Inherited Members | |
| Public Member Functions inherited from Thread | |
| Thread () | |
| Constructs a Thread with a default name. | |
| Thread (const StringView &name) | |
| Constructs a Thread with the specified name. | |
| virtual | ~Thread () |
| Destroys the Thread and cleans up resources. | |
| void | detach () |
| Detaches the thread, allowing it to run independently. | |
| void | forceStop () |
| Forces the running flag to false without waiting for the thread to finish. | |
| bool | isPrimaryThread () const |
| Checks whether this thread is the primary thread. | |
| bool | isRunning () const |
| Checks whether the thread is currently running. | |
| void | join () |
| Blocks the calling thread until this thread finishes execution. | |
| virtual void | requestStopThread () |
| Requests the thread to stop without blocking. | |
| void | setIsPrimaryThread (bool is_primary_thread) |
| Sets whether this thread should be treated as the primary thread. | |
| void | setThreadName (const StringView &name) |
| Sets the name of this thread. | |
| virtual bool | shouldExitThread () const |
| Checks whether the thread has been requested to exit. | |
| void | start () |
| Starts the thread execution. | |
| virtual void | stopThread () |
| Stops the thread and waits for it to finish. | |
| const String & | threadName () const |
| Gets the name assigned to this thread. | |
| Static Public Member Functions inherited from Thread | |
| static Thread & | CurrentThread () |
| Gets a reference to the Thread object for the calling thread. | |
| static String | CurrentThreadName () |
| Gets the name of the current thread. | |
| static void | ServiceVirtualThreads () |
| Services any virtual threads that require periodic execution. | |
| static void | SetCurrentThreadName (const StringView &name) |
| Sets the name of the current thread. | |
| static void | StopAllThreads () |
| Stops all tracked threads. | |
| Protected Member Functions inherited from Thread | |
| virtual void | run () |
| The main execution body of the thread. | |
| const std::thread & | self () |
| Gets a const reference to the underlying std::thread. | |
Used to check for and resolve potential deadlocks or resource starvation across threads.
Definition at line 10 of file LockAnalyzerThread.h.