Apply clang-format to code base

This commit is contained in:
clang-format-bot 2022-09-22 21:26:05 +03:00 committed by ζeh Matt
parent f37d0be806
commit ddb0522bbf
No known key found for this signature in database
GPG key ID: 18CE582C71A225B0
2199 changed files with 118692 additions and 114392 deletions

View file

@ -5,10 +5,10 @@
#include <osg/ref_ptr>
#include <atomic>
#include <condition_variable>
#include <mutex>
#include <queue>
#include <thread>
#include <mutex>
#include <condition_variable>
namespace SceneUtil
{
@ -31,7 +31,7 @@ namespace SceneUtil
virtual void abort() {}
private:
std::atomic_bool mDone {false};
std::atomic_bool mDone{ false };
std::mutex mMutex;
std::condition_variable mCondition;
};
@ -54,7 +54,7 @@ namespace SceneUtil
/// Add a new work item to the back of the queue.
/// @par The work item's waitTillDone() method may be used by the caller to wait until the work is complete.
/// @param front If true, add item to the front of the queue. If false (default), add to the back.
void addWorkItem(osg::ref_ptr<WorkItem> item, bool front=false);
void addWorkItem(osg::ref_ptr<WorkItem> item, bool front = false);
/// Get the next work item from the front of the queue. If the queue is empty, waits until a new item is added.
/// If the workqueue is in the process of being destroyed, may return nullptr.
@ -67,7 +67,7 @@ namespace SceneUtil
private:
bool mIsReleased;
std::deque<osg::ref_ptr<WorkItem> > mQueue;
std::deque<osg::ref_ptr<WorkItem>> mQueue;
mutable std::mutex mMutex;
std::condition_variable mCondition;
@ -93,7 +93,6 @@ namespace SceneUtil
void run();
};
}
#endif