|
Parallel Make
1.0
My implementation of make utility, which can run in multiple threads according to user request.
|
Wrapper around pthread_mutex. More...
#include <mutex.hpp>
Public Member Functions | |
| mutex () | |
| Basic constructor for mutex. More... | |
| mutex (mutex &&)=default | |
| Defaulted move constructor. More... | |
| mutex & | operator= (mutex &&)=default |
| Defaulted move assignment. More... | |
| mutex (const mutex &)=delete | |
| Deleted copy constructor. More... | |
| mutex & | operator= (const mutex &)=delete |
| Deleted copy assignment. More... | |
| ~mutex () | |
| Destructor for mutex, which frees inner structures. More... | |
| bool | lock () |
| bool | try_lock () |
| bool | unlock () |
Friends | |
| class | condition_variable |
Wrapper around pthread_mutex.
!
|
inline |
Basic constructor for mutex.
|
default |
Defaulted move constructor.
|
delete |
Deleted copy constructor.
|
inline |
Destructor for mutex, which frees inner structures.
|
inline |
Locks the mutex. Will block if mutex is already locked.
|
inline |
Tries to lock the mutex. If mutex is already locked, function returns immediately.
|
inline |
Unlocks the mutex.
|
friend |