ZNC
trunk
|
#include <znc/zncconfig.h>
#include <znc/Utils.h>
#include <cerrno>
#include <csignal>
#include <cstdlib>
#include <cstring>
#include <list>
#include <pthread.h>
#include <mutex>
#include <condition_variable>
Go to the source code of this file.
Classes | |
class | CJob |
A job is a task which should run without blocking the main thread. More... | |
class | CThreadPool |
Typedefs | |
using | CMutex = std::mutex |
This class represents a non-recursive mutex. More... | |
using | CMutexLocker = std::unique_lock< std::mutex > |
A mutex locker should always be used as an automatic variable. More... | |
using | CConditionVariable = std::condition_variable_any |
A condition variable makes it possible for threads to wait until some condition is reached at which point the thread can wake up again. More... | |
using CConditionVariable = std::condition_variable_any |
A condition variable makes it possible for threads to wait until some condition is reached at which point the thread can wake up again.
using CMutex = std::mutex |
This class represents a non-recursive mutex.
Only a single thread may own the mutex at any point in time.
using CMutexLocker = std::unique_lock<std::mutex> |
A mutex locker should always be used as an automatic variable.
This class makes sure that the mutex is unlocked when this class is destructed. For example, this makes it easier to make code exception-safe.