Apply automated code formatting

Documented at .clang-format
See http://clang.llvm.org/docs/ClangFormat.html and http://clang.llvm.org/docs/ClangFormatStyleOptions.html
This commit is contained in:
Carles Fernandez
2018-03-03 02:03:39 +01:00
parent c9ac8c78af
commit 34f24562cf
902 changed files with 36937 additions and 34571 deletions
+4 -3
View File
@@ -34,7 +34,7 @@
#include <boost/thread.hpp>
#include <queue>
template<typename Data>
template <typename Data>
/*!
* \brief This class implements a thread-safe std::queue
@@ -49,6 +49,7 @@ private:
std::queue<Data> the_queue;
mutable boost::mutex the_mutex;
boost::condition_variable the_condition_variable;
public:
void push(Data const& data)
{
@@ -67,7 +68,7 @@ public:
bool try_pop(Data& popped_value)
{
boost::mutex::scoped_lock lock(the_mutex);
if(the_queue.empty())
if (the_queue.empty())
{
return false;
}
@@ -79,7 +80,7 @@ public:
void wait_and_pop(Data& popped_value)
{
boost::mutex::scoped_lock lock(the_mutex);
while(the_queue.empty())
while (the_queue.empty())
{
the_condition_variable.wait(lock);
}