STLdb

PrevUpHomeNext

Class template picket_lock_set

stldb::picket_lock_set

Synopsis

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

template<typename T, typename mutex_type, int NumLocks = 31> 
class picket_lock_set {
public:
  // construct/copy/destruct
  picket_lock_set();

  // public member functions
  mutex_type & mutex(const void *) ;
  template<typename FwdIterator> 
    void mutexes(FwdIterator, FwdIterator, std::vector< mutex_type * > &) ;
  void print_stats() ;
};

Description

picket_lock_set public construct/copy/destruct

  1. picket_lock_set();

picket_lock_set public member functions

  1. mutex_type & mutex(const void * object) ;
  2. template<typename FwdIterator> 
      void mutexes(FwdIterator start, FwdIterator end, 
                   std::vector< mutex_type * > & result) ;
  3. void print_stats() ;

PrevUpHomeNext