fairness  v1.0.0
A collection of advanced syncronization mechanisms.
Loading...
Searching...
No Matches
thread_utils.hpp File Reference

Alias thread_utils. More...

#include <mutex>
#include <shared_mutex>
#include "waiting_utils.hpp"
Include dependency graph for thread_utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  utils
 
namespace  utils::thread
 

Macros

#define NOW   std::chrono::high_resolution_clock::now()
 

Enumerations

enum class  utils::thread::LockLevel { utils::thread::Unique , utils::thread::Shared , utils::thread::Unique_Try , utils::thread::Shared_Try }
 

Functions

template<LockLevel lock_level, utils::waiting::WaitingLevel waiting_level, typename Lockable >
void utils::thread::thread_function (Lockable &lockable, int preCriticalTime, int criticalTime, int postCriticalTime, int p=0)
 

Detailed Description

Alias thread_utils.

Author
F. Abrignani (feder.nosp@m.igno.nosp@m.li@ho.nosp@m.tmai.nosp@m.l.it)
S. Martorana (salva.nosp@m.tore.nosp@m.marto.nosp@m.rana.nosp@m.@hotm.nosp@m.ail..nosp@m.com)
Version
0.1
Date
2023-10-06

Macro Definition Documentation

◆ NOW

#define NOW   std::chrono::high_resolution_clock::now()