![]()  | 
  
  
  
    Face Engine SDK
    5.25.0
    
   A face detection, recognition and tracking engine. 
   | 
  
  
  
 
Interface for running tasks asynchronously. More...
#include <IAsyncContext.h>
  
 Public Member Functions | |
| virtual int8_t | threads () const noexcept=0 | 
| Returns size of underlying thread pool.   | |
| virtual bool | valid () const noexcept=0 | 
| Tells validness of internal state.   | |
| virtual bool | clearTaskQueue () noexcept=0 | 
| Clears tasks not yet taken by any thread.   | |
| virtual bool | resize (const int8_t newThreadCount) noexcept=0 | 
| Resizes internal thread pool to some new size param newThreadCount New size of thread pool. Should not be less than 1.   | |
| virtual bool | stop () noexcept=0 | 
| Waits for all already running tasks to complete, then stops every thread. Do not use threadpool afterwards. Is called on destruction.   | |
Interface for running tasks asynchronously.
Contains thread pool under hood.
| virtual bool fsdk::IAsyncContext::clearTaskQueue | ( | ) |  [pure virtual] | 
        
Clears tasks not yet taken by any thread.
| virtual bool fsdk::IAsyncContext::resize | ( | const int8_t | newThreadCount | ) |  [pure virtual] | 
        
Resizes internal thread pool to some new size param newThreadCount New size of thread pool. Should not be less than 1.
| virtual bool fsdk::IAsyncContext::stop | ( | ) |  [pure virtual] | 
        
Waits for all already running tasks to complete, then stops every thread. Do not use threadpool afterwards. Is called on destruction.
| virtual int8_t fsdk::IAsyncContext::threads | ( | ) |  const [pure virtual] | 
        
Returns size of underlying thread pool.
| virtual bool fsdk::IAsyncContext::valid | ( | ) |  const [pure virtual] | 
        
Tells validness of internal state.