Skip to content

Commit ff6ed60

Browse files
Adding function to check the number of active tasks
1 parent e9a9eb9 commit ff6ed60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/taskr/runtime.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,11 @@ class Runtime
453453
* Function to toggle the finish on last task condition
454454
*/
455455
__INLINE__ void setFinishOnLastTask(const bool value = true) { _finishOnLastTask = value; }
456+
457+
/**
458+
* Function to check whether there are active tasks remaining
459+
*/
460+
__INLINE__ size_t getActiveTaskCounter() const { return _activeTaskCount; }
456461

457462
private:
458463

0 commit comments

Comments
 (0)