mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Apply clang-format to code base
This commit is contained in:
parent
f37d0be806
commit
ddb0522bbf
2199 changed files with 118692 additions and 114392 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue