oss_src/util/testing_utils.cpp
void _add_directory_to_deleter(const std::string& name) {

  __list_of_directories_lock.lock();
  
  if(!archive_directory_deleter_added) {
    std::atexit(_archive_directory_deleter);
    archive_directory_deleter_added = true;
  }
        
  __list_of_directories_to_clean_up.push_back(name);
  
  __list_of_directories_lock.unlock();
}
/** The directories we use for our temporary archives should be unique
 *  and everything, but we don't want hundreds of these lying around.
 *  Thus add them to a list with which we delete when the program
 *  exits; this function does that. 
 */
The directories we use for our temporary archives should be unique
and everything, but we don't want hundreds of these lying around.
Thus add them to a list with which we delete when the program
exits; this function does that.
The directories we use for our temporary archives should be unique and everything but we don ' t want hundreds of these lying around . Thus add them to a list with which we delete when the program exits ; this function does that .
void _add_directory_to_deleter(const std::string& name) {
  __list_of_directories_lock.lock();
  if(!archive_directory_deleter_added) {
    std::atexit(_archive_directory_deleter);
    archive_directory_deleter_added = true;
  }
  __list_of_directories_to_clean_up.push_back(name);
  __list_of_directories_lock.unlock();
}
void _add_directory_to_deleter ( const std :: string & name ) { __list_of_directories_lock . lock ( ) ; if ( ! archive_directory_deleter_added ) { std :: atexit ( _archive_directory_deleter ) ; archive_directory_deleter_added = true ; } __list_of_directories_to_clean_up . push_back ( name ) ; __list_of_directories_lock . unlock ( ) ; }
The directories we use for our temporary archives should be unique
  and everything, but we don't want hundreds of these lying around.
The directories we use for our temporary archives should be unique and everything but we don ' t want hundreds of these lying around .