Logo Search packages:      
Sourcecode: qdbm version File versions  Download package

void Villa::remove ( const char *  name  )  throw (Villa_error) [static]

Remove a database directory.

Parameters:
name the name of a database directory.
Exceptions:
Villa_error if an error occurs.

Definition at line 156 of file xvilla.cc.

References qdbm::mutex, and name().

                                                     {
  if(pthread_mutex_lock(&mutex) != 0) throw Villa_error();
  if(!vlremove(name)){
    pthread_mutex_unlock(&mutex);
    throw Villa_error(dpecode);
  }
  pthread_mutex_unlock(&mutex);
}


Generated by  Doxygen 1.6.0   Back to index