1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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