mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-28 10:02:31 -06:00
common/thread: Group non-member functions together
Keeps the non-member interface in one spot instead of split into two places, making it nicer to locate functions.
This commit is contained in:
parent
a7a319cfd1
commit
9cbcc70c9b
1 changed files with 2 additions and 3 deletions
|
@ -13,9 +13,6 @@
|
||||||
|
|
||||||
namespace Common {
|
namespace Common {
|
||||||
|
|
||||||
void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask);
|
|
||||||
void SetCurrentThreadAffinity(u32 mask);
|
|
||||||
|
|
||||||
class Event {
|
class Event {
|
||||||
public:
|
public:
|
||||||
Event() : is_set(false) {}
|
Event() : is_set(false) {}
|
||||||
|
@ -92,6 +89,8 @@ private:
|
||||||
std::size_t generation; // Incremented once each time the barrier is used
|
std::size_t generation; // Incremented once each time the barrier is used
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask);
|
||||||
|
void SetCurrentThreadAffinity(u32 mask);
|
||||||
void SwitchCurrentThread(); // On Linux, this is equal to sleep 1ms
|
void SwitchCurrentThread(); // On Linux, this is equal to sleep 1ms
|
||||||
void SetCurrentThreadName(const char* name);
|
void SetCurrentThreadName(const char* name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue