#include <parallel.h>
Static Public Member Functions | |
| static Mutex * | Create () |
| static void | Destroy (Mutex *m) |
Private Member Functions | |
| Mutex () | |
| ~Mutex () | |
| Mutex (Mutex &) | |
| Mutex & | operator= (const Mutex &) |
Private Attributes | |
| pthread_mutex_t | mutex |
Friends | |
| struct | MutexLock |
Definition at line 199 of file parallel.h.
| Mutex::Mutex | ( | ) | [private] |
Definition at line 88 of file parallel.cpp.
| Mutex::~Mutex | ( | ) | [private] |
Definition at line 96 of file parallel.cpp.
References mutex, and Severe().
Referenced by Destroy().
| Mutex::Mutex | ( | Mutex & | ) | [private] |
| Mutex * Mutex::Create | ( | ) | [static] |
Definition at line 73 of file parallel.cpp.
References AllocAligned(), and PBRT_L1_CACHE_LINE_SIZE.
Referenced by PhotonIntegrator::Preprocess(), ProgressReporter::ProgressReporter(), and MetropolisRenderer::Render().
| void Mutex::Destroy | ( | Mutex * | m | ) | [static] |
Definition at line 81 of file parallel.cpp.
References FreeAligned(), and ~Mutex().
Referenced by PhotonIntegrator::Preprocess(), MetropolisRenderer::Render(), and ProgressReporter::~ProgressReporter().
friend struct MutexLock [friend] |
Definition at line 207 of file parallel.h.
pthread_mutex_t Mutex::mutex [private] |
Definition at line 215 of file parallel.h.
Referenced by Mutex(), MutexLock::MutexLock(), ~Mutex(), and MutexLock::~MutexLock().
1.6.3