Commit 2458827e authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[STYLE]

parent 9fddfb4c
......@@ -25,7 +25,7 @@
#ifndef WCONDITION_H
#define WCONDITION_H
#include <boost/thread.hpp>
#include <boost/thread.hpp>
/**
* Class to encapsulate boost::condition_variable_any. You may use it to efficiently wait for events (a condition comes true). It
......
......@@ -38,7 +38,7 @@ WConditionOneShot::~WConditionOneShot()
{
m_lock.unlock();
}
catch ( const boost::lock_error &e )
catch( const boost::lock_error &e )
{
// ignore this particular error since it is thrown when the lock is not locked anymore
}
......@@ -48,7 +48,7 @@ void WConditionOneShot::wait()
{
// now we wait until the write lock is released and we can get a read lock
boost::shared_lock<boost::shared_mutex> slock = boost::shared_lock<boost::shared_mutex>( m_mutex );
slock.unlock();
slock.unlock();
}
void WConditionOneShot::notify()
......
......@@ -22,8 +22,8 @@
//
//---------------------------------------------------------------------------
#ifndef WCONDITION_TEST_H
#define WCONDITION_TEST_H
#ifndef WCONDITIONONESHOT_TEST_H
#define WCONDITIONONESHOT_TEST_H
#include <iostream>
......@@ -91,5 +91,5 @@ public:
}
};
#endif // WCONDITION_TEST_H
#endif // WCONDITIONONESHOT_TEST_H
......@@ -86,7 +86,6 @@ public:
TS_ASSERT( t.flag );
}
};
#endif // WCONDITION_TEST_H
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment