Tkrzw
Classes | Namespaces | Functions
tkrzw_thread_util.h File Reference

Threading utilities. More...

#include <atomic>
#include <shared_mutex>
#include <string>
#include <string_view>
#include <vector>
#include <cinttypes>
#include "tkrzw_lib_common.h"

Classes

class  tkrzw::SlottedMutex
 Slotted shared mutex. More...
 
class  tkrzw::ScopedSlottedLock
 Scoped lock with a slotted shared mutex. More...
 
class  tkrzw::HashMutex
 Mutex for a hash table. More...
 
class  tkrzw::ScopedHashLock
 Scoped lock with a mutex for a hash table. More...
 

Namespaces

 tkrzw
 Common namespace of Tkrzw.
 

Functions

double tkrzw::GetWallTime ()
 Gets the number of seconds since the UNIX epoch. More...
 
void tkrzw::Sleep (double sec)
 Sleeps the current thread. More...
 

Detailed Description

Threading utilities.