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 | 7ead5b7a9ea99a3e0f1459187b3262f7054f0126 (patch) | |
| tree | 17e082a745fd1bae8af5b8b1682c3a2ff94769c8 /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 |
