diff options
| author | Paul Buetow <paul@buetow.org> | 2010-11-21 16:18:08 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2010-11-21 16:18:08 +0000 |
| commit | 58885c244c2b9625d0917797dedd3850bf07ae53 (patch) | |
| tree | 908b09f5dcb348b48d193ce522dc73927d66ed2c /mutx.cpp | |
Diffstat (limited to 'mutx.cpp')
| -rw-r--r-- | mutx.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mutx.cpp b/mutx.cpp new file mode 100644 index 0000000..eb75e90 --- /dev/null +++ b/mutx.cpp @@ -0,0 +1,20 @@ +// class mutx implementation. + +#ifndef s_mutx_CXX +#define s_mutx_CXX + +#include "mutx.h" + +using namespace std; + +mutx::mutx() +{ + pthread_mutex_init( &mut_stdout, NULL ); +} + +mutx::~mutx() +{ + pthread_mutex_destroy( &mut_stdout ); +} + +#endif |
