-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from MissouriMRDT/hotfix/thread-interface-queu…
…e-length Add Method for Getting Threadpool Queue Length
- Loading branch information
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -511,6 +511,16 @@ class AutonomyThread | |
******************************************************************************/ | ||
int GetPoolNumOfThreads() { return m_thPool.get_thread_count(); } | ||
|
||
/****************************************************************************** | ||
* @brief Accessor for the Pool Queue Size private member. | ||
* | ||
* @return int - The number of tasks queued for the pool. | ||
* | ||
* @author clayjay3 ([email protected]) | ||
* @date 2024-03-14 | ||
******************************************************************************/ | ||
int GetPoolQueueLength() { return m_thPool.get_tasks_queued(); } | ||
|
||
/****************************************************************************** | ||
* @brief Accessor for the Pool Results private member. The action of getting | ||
* results will destroy and remove them from this object. This method blocks | ||
|