API Reference > Other Classes > ThreadsCounter Class
ThreadsCounter Class
ThreadsCounter
Syntax
C++
class ThreadsCounter;

ThreadsCounter.h

Corresponding C++ library: Root 

 

 
Name 
Description 
 
This is record ThreadsCounter::ThreadAttributes. 
 
Name 
Description 
 
Adds reactor into threads counter reactors chain.  
 
Decrease execution threads count.  
 
Returns function for execution in the external main thread. 
 
Returns pointer for current OdRxThreadPoolService. 
 
Checks whether reactor is available in threads counter reactors chain.  
 
Returns true if increase called for specified thread. Optionally returns thread attributes.  
 
Increase execution threads count.  
 
Returns count of reactors in threads counter reactors chain. 
 
Removes reactor from threads counter reactors chain.  
 
Setup function for execution in the external main thread.  
 
Save pointer for current OdRxThreadPoolService.  
 
Called when execution thread started. 
 
Called when execution thread stopped. 
 
Name 
Description 
 
bool 
Returns true if ThreadsCounter has registered threads and the ODA Platform works in multithreading mode. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.