generated from Template/H563ZI-HAL-CMake-Template
删除多个类和结构体的拷贝构造函数和赋值运算符,确保不可复制性
All checks were successful
Build and Upload Artifact / build and upload-artifact (push) Successful in 20m4s
All checks were successful
Build and Upload Artifact / build and upload-artifact (push) Successful in 20m4s
This commit is contained in:
@@ -4,8 +4,7 @@
|
||||
#include <cstdint>
|
||||
#include <stdexcept>
|
||||
|
||||
class TaskHelper {
|
||||
public:
|
||||
namespace TaskHelper {
|
||||
template <typename Func>
|
||||
static void WaitFor(Func func, uint32_t timeoutMilliseconds) {
|
||||
auto start = HAL_GetTick();
|
||||
@@ -16,4 +15,4 @@ public:
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}; // namespace TaskHelper
|
||||
|
||||
Reference in New Issue
Block a user