-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpushthread.cpp
More file actions
44 lines (38 loc) · 781 Bytes
/
pushthread.cpp
File metadata and controls
44 lines (38 loc) · 781 Bytes
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
44
//#include "pushthread.h"
//#include "main.h"
//#include <sys/syscall.h>
//static void setThreadAffinityMask(pid_t tid, uint32_t mask)
//{
// syscall(__NR_sched_setaffinity, tid, sizeof(mask), &mask);
//}
//void CFPSFix::Routine()
//{
// while (true)
// {
// m_Mutex.lock();
// for (auto& i : m_Threads)
// {
// uint32_t mask = 0xff;
//
// setThreadAffinityMask(i, mask);
// }
// m_Mutex.unlock();
//
// std::this_thread::sleep_for(std::chrono::milliseconds(1000));
// }
//}
//CFPSFix::CFPSFix()
//{
// std::thread(&CFPSFix::Routine, this).detach();
//}
//CFPSFix::~CFPSFix()
//{
//
// Powered by tapy.me/weikton
//
//}
//void CFPSFix::PushThread(pid_t tid)
//{
// std::lock_guard<std::mutex> lock(m_Mutex);
// m_Threads.push_back(tid);
//}