summaryrefslogtreecommitdiff
path: root/src/threadUtils.hpp
diff options
context:
space:
mode:
authorMarkus Grüneis <gimpf@gimpf.org>2009-11-11 20:35:10 +0000
committerMarkus Grüneis <gimpf@gimpf.org>2009-11-11 20:35:10 +0000
commit7ca06c7c5a0ae4bb38a67948a03ad8585f925707 (patch)
tree3b6c04f5c3deb795f48d8419c7420e1820eacb59 /src/threadUtils.hpp
parentadded hidden ebuid-compat option to configure script (diff)
fixed header file include guards to be C++ compliant; now always use format ANYTUN_<filename>_INCLUDED
Diffstat (limited to 'src/threadUtils.hpp')
-rw-r--r--src/threadUtils.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/threadUtils.hpp b/src/threadUtils.hpp
index cbef167..7e33302 100644
--- a/src/threadUtils.hpp
+++ b/src/threadUtils.hpp
@@ -29,14 +29,16 @@
* You should have received a copy of the GNU General Public License
* along with anytun. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef ANYTUN_threadUtils_hpp_INCLUDED
+#define ANYTUN_threadUtils_hpp_INCLUDED
+
#include <boost/thread.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/shared_mutex.hpp>
#include <boost/thread/condition.hpp>
#include "datatypes.h"
-#ifndef __THREADUTILS__
-#define __THREADUTILS__
+
typedef boost::mutex::scoped_lock Lock;
typedef boost::mutex Mutex;