Skip to content

Commit

Permalink
Merge pull request #21 from MissouriMRDT/hotfix/thread-interface-queu…
Browse files Browse the repository at this point in the history
…e-length

Add Method for Getting Threadpool Queue Length
  • Loading branch information
ClayJay3 authored Mar 15, 2024
2 parents 09faa8c + 3d8feb1 commit ef1d4cc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/interfaces/AutonomyThread.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef1d4cc

Please sign in to comment.