MLIB
Loading...
Searching...
No Matches
syncbase.h File Reference

syncbase class definition. More...

#include "safe_winsock.h"
#include <windows.h>
#include <string>
#include <atomic>
#include <vector>
#include <chrono>
#include <assert.h>

Go to the source code of this file.

Data Structures

class  mlib::syncbase
 Base class for all named synchronization objects. More...
 

Functions

template<typename T >
DWORD mlib::wait_all (const T *objs, int count, DWORD msec=INFINITE)
 Wait for multiple objects until all become signaled.
 
template<typename T >
DWORD mlib::wait_all (std::initializer_list< const T * > objs, DWORD msec=INFINITE)
 Wait for multiple objects until all become signaled.
 
template<typename T >
DWORD mlib::wait_all (std::initializer_list< const T * > objs, std::chrono::milliseconds limit)
 Wait for multiple objects until all become signaled.
 
template<typename T >
DWORD mlib::wait_any (const T *objs, int count, DWORD msec=INFINITE)
 Wait for multiple objects until any of them becomes signaled.
 
template<typename T >
DWORD mlib::wait_any (std::initializer_list< const T * > objs, DWORD msec=INFINITE)
 Wait for multiple objects until any of them becomes signaled.
 
template<typename T >
DWORD mlib::wait_any (std::initializer_list< const T * > objs, std::chrono::milliseconds timeout)
 Wait for multiple objects until any of them becomes signaled.
 
template<typename T >
DWORD mlib::wait_msg (const T *objs, int count, bool all=true, DWORD msec=INFINITE, DWORD mask=QS_ALLINPUT)
 Wait for multiple objects or a message to be queued.
 
template<typename T >
DWORD mlib::wait_msg (std::initializer_list< const T * > objs, bool all=true, DWORD msec=INFINITE, DWORD mask=QS_ALLINPUT)
 Wait for multiple objects or a message to be queued.
 

Detailed Description

syncbase class definition.

(c) Mircea Neacsu 1999