aboutsummaryrefslogtreecommitdiff
path: root/src/itomutex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/itomutex.cpp')
-rw-r--r--src/itomutex.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/itomutex.cpp b/src/itomutex.cpp
deleted file mode 100644
index 8de6336..0000000
--- a/src/itomutex.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
1/*
2 * Copyright (C) 2007-2011 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
8#include "bu/itomutex.h"
9
10Bu::ItoMutex::ItoMutex()
11{
12 pthread_mutex_init( &mutex, NULL );
13}
14
15Bu::ItoMutex::~ItoMutex()
16{
17 pthread_mutex_destroy( &mutex );
18}
19
20int Bu::ItoMutex::lock()
21{
22 return pthread_mutex_lock( &mutex );
23}
24
25int Bu::ItoMutex::unlock()
26{
27 return pthread_mutex_unlock( &mutex );
28}
29
30int Bu::ItoMutex::trylock()
31{
32 return pthread_mutex_trylock( &mutex );
33}
34