#include <plugin_utils.h>
◆ Plugin_waitlock()
Constructor. 
Instantiate the mutex lock, mutex condition, mutex and condition key.
- Parameters
 - 
  
    | lock | the mutex lock for access to class and condition variables  | 
    | cond | the condition variable calling thread will wait on  | 
    | lock_key | mutex instrumentation key  | 
    | cond_key | cond instrumentation key  | 
  
   
 
 
◆ ~Plugin_waitlock()
  
  
      
        
          | virtual Plugin_waitlock::~Plugin_waitlock  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
Destructor. 
Destroys the mutex and condition objects. 
 
 
◆ end_wait_lock()
  
  
      
        
          | void Plugin_waitlock::end_wait_lock  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Release the blocked thread. 
 
 
◆ is_waiting()
  
  
      
        
          | bool Plugin_waitlock::is_waiting  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Checks whether thread should be blocked. 
- Return values
 - 
  
    | true | thread should be blocked  | 
    | false | thread should not be blocked  | 
  
   
 
 
◆ set_wait_lock()
  
  
      
        
          | void Plugin_waitlock::set_wait_lock  | 
          ( | 
          bool  | 
          status | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set condition to block or unblock the calling threads. 
- Parameters
 - 
  
    | [in] | status | if the thread should be blocked or not  | 
  
   
 
 
◆ start_waitlock()
  
  
      
        
          | void Plugin_waitlock::start_waitlock  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Blocks the calling thread. 
 
 
◆ key_cond
◆ key_lock
mutex instrumentation key 
 
 
◆ wait_cond
the condition variable calling thread will wait on 
 
 
◆ wait_lock
the mutex lock for access to class and condition variables 
 
 
◆ wait_status
  
  
      
        
          | bool Plugin_waitlock::wait_status | 
         
       
   | 
  
private   | 
  
 
determine whether calling thread should be blocked or not 
 
 
The documentation for this class was generated from the following file: