All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Methods | List of all members
nvbio::Mutex Class Reference

Detailed description

A mutex class, to be used to provide mutual exclusion of multi-thread execution

struct MyThreadSafeClass
// multi-thread safe section
void foo()
// enter a critical section
... // do something
Mutex m_mutex;

Definition at line 141 of file threads.h.

#include <threads.h>


struct  Impl
 Mutex class. More...

Public Methods

 Mutex ()
 ~Mutex ()
void lock ()
void unlock ()

Constructor & Destructor Documentation

nvbio::Mutex::Mutex ( )

Definition at line 300 of file threads.cpp.

nvbio::Mutex::~Mutex ( )

Definition at line 303 of file threads.cpp.

Member Function Documentation

void nvbio::Mutex::lock ( )

Definition at line 307 of file threads.cpp.

void nvbio::Mutex::unlock ( )

Definition at line 308 of file threads.cpp.

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