mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2026-09-27 19:31:50 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user