mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
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:
committed by
Peter Johnson
parent
68690643d2
commit
e14e45da76
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user