-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskman.cpp
More file actions
43 lines (39 loc) · 1.03 KB
/
taskman.cpp
File metadata and controls
43 lines (39 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "stdafx.h"
namespace local {
Taskman::Taskman(const TypeID& task_id) :
m_TaskID(task_id) {
}
Taskman::~Taskman() {
}
void Taskman::Release() const {
delete this;
}
const TypeID& Taskman::TaskID() const {
std::lock_guard<std::mutex> lock{ *m_Mutex };
return m_TaskID;
}
void Taskman::ProcessId(const DWORD& pid) {
std::lock_guard<std::mutex> lock{ *m_Mutex };
m_ProcessId = pid;
}
const DWORD& Taskman::ProcessId() const {
std::lock_guard<std::mutex> lock{ *m_Mutex };
return m_ProcessId;
}
void Taskman::InPathname(const std::string& pathname) {
std::lock_guard<std::mutex> lock{ *m_Mutex };
m_InPathname = pathname;
}
void Taskman::OutPath(const std::string& path) {
std::lock_guard<std::mutex> lock{ *m_Mutex };
m_OutPath = path;
}
const std::string& Taskman::InPathname() const {
std::lock_guard<std::mutex> lock{ *m_Mutex };
return m_InPathname;
}
const std::string& Taskman::OutPath() const {
std::lock_guard<std::mutex> lock{ *m_Mutex };
return m_OutPath;
}
}///namespace lcoal