golib  0.5
goMutex Class Reference

A mutual exclusion class. More...

#include <gothread.h>

Public Member Functions

void lock ()
 
void unlock ()
 
pthread_mutex_t * getPthreadMutex ()
 

Protected Attributes

pthread_mutex_t mutex
 

Detailed Description

A mutual exclusion class.

Author
Christian Gosch
Note
Should work on both POSIX and win32. I recommend to always use POSIX where possible and to avoid non-POSIX thread implementations. However, If you feel like it you are most warmly welcome to implement a specialized Solaris threads version of goMutex, goThread and all related classes.

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