Turi Create  4.0
turi::recursive_mutex Class Reference

#include <core/parallel/mutex.hpp>

Public Member Functions

 recursive_mutex ()
 constructs a mutex
 
 recursive_mutex (const recursive_mutex &)
 
void lock () const
 Acquires a lock on the mutex.
 
void unlock () const
 Releases a lock on the mutex.
 
bool try_lock () const
 Non-blocking attempt to acquire a lock on the mutex.
 

Detailed Description

Simple wrapper around pthread's recursive mutex. Before you use, see parallel_object_intricacies.

Definition at line 97 of file mutex.hpp.

Constructor & Destructor Documentation

◆ recursive_mutex()

turi::recursive_mutex::recursive_mutex ( const recursive_mutex )
inline

Copy constructor which does not copy. Do not use! Required for compatibility with some STL implementations (LLVM). which use the copy constructor for vector resize, rather than the standard constructor.

Definition at line 116 of file mutex.hpp.


The documentation for this class was generated from the following file: