Skip to content

Commit

Permalink
Base: make TaskManager objects non-copyable
Browse files Browse the repository at this point in the history
Fix issue reported by codacy
  • Loading branch information
HuguesDelorme committed May 17, 2023
1 parent 8ec448c commit 71be8b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/base/task_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ class TaskManager {
TaskManager();
~TaskManager();

// Not copyable
TaskManager(const TaskManager&) = delete;
TaskManager& operator=(const TaskManager&) = delete;

// Allocates a new task entity in manager
// Returns the task identifier(unique in the scope of the owning TaskManager)
TaskId newTask(TaskJob fn);
Expand Down

0 comments on commit 71be8b1

Please sign in to comment.