diff options
Diffstat (limited to 'src/mutx.cpp')
| -rwxr-xr-x | src/mutx.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mutx.cpp b/src/mutx.cpp new file mode 100755 index 0000000..ed2a7d6 --- /dev/null +++ b/src/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 |
