Add format script which invokes clang-format on the C++ source code (#41)

On Windows machines, clang-format.exe must be in the PATH environment variable.
This commit is contained in:
Tyler Veness
2016-05-20 17:30:37 -07:00
committed by Peter Johnson
parent 68690643d2
commit e14e45da76
383 changed files with 13787 additions and 13198 deletions

View File

@@ -5,8 +5,8 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "HAL/HAL.hpp"
#include <atomic>
#include "HAL/HAL.hpp"
/**
* Create and launch a task.
@@ -24,10 +24,11 @@ Task::Task(const std::string& name, Function&& function, Args&&... args) {
m_thread = std::thread(std::forward<std::decay_t<Function>>(function),
std::forward<Args>(args)...);
//TODO: lvuser does not currently have permissions to set the priority.
//SetPriority(kDefaultPriority);
// TODO: lvuser does not currently have permissions to set the priority.
// SetPriority(kDefaultPriority);
static std::atomic<int32_t> instances{0};
instances++;
HALReport(HALUsageReporting::kResourceType_Task, instances, 0, m_taskName.c_str());
HALReport(HALUsageReporting::kResourceType_Task, instances, 0,
m_taskName.c_str());
}