STLdb

PrevUpHomeNext

Class template bounded_wait_policy

stldb::bounded_wait_policy

Synopsis

// In header: </Users/bobw/workspace/stldb_lib/stldb/sync/wait_policy.h>

template<typename container_lock_t> 
class bounded_wait_policy {
public:
  // construct/copy/destruct
  bounded_wait_policy(container_lock_t &, 
                      const boost::posix_time::time_duration &);

  // public member functions
  void unlock_container() ;
  void relock_container() ;
  template<typename row_mutex_t, typename condition_t> 
    void wait(boost::interprocess::scoped_lock< row_mutex_t > &, 
              condition_t &) ;
};

Description

bounded_wait_policy public construct/copy/destruct

  1. bounded_wait_policy(container_lock_t & lock, 
                        const boost::posix_time::time_duration & max_wait);

bounded_wait_policy public member functions

  1. void unlock_container() ;
  2. void relock_container() ;
  3. template<typename row_mutex_t, typename condition_t> 
      void wait(boost::interprocess::scoped_lock< row_mutex_t > & held_lock, 
                condition_t & condition) ;

PrevUpHomeNext