Initial Commit
This commit is contained in:
13
include/pd/Tasks.hpp
Normal file
13
include/pd/Tasks.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
#include <functional>
|
||||
|
||||
namespace Palladium {
|
||||
namespace Tasks {
|
||||
/// @brief Push A Task
|
||||
/// @param fun Function of Your Task
|
||||
/// @return index
|
||||
int Create(std::function<void()> fun);
|
||||
/// @brief Destroy all Tasks
|
||||
void DestroyAll();
|
||||
} // namespace Tasks
|
||||
} // namespace Palladium
|
||||
Reference in New Issue
Block a user