mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 05:21:25 +12:00
Implement thread_ctrl::is_main()
This commit is contained in:
parent
55c75d2c87
commit
3609eb25c9
3 changed files with 10 additions and 0 deletions
|
@ -2987,3 +2987,8 @@ u64 thread_ctrl::get_tid()
|
|||
return reinterpret_cast<u64>(pthread_self());
|
||||
#endif
|
||||
}
|
||||
|
||||
bool thread_ctrl::is_main()
|
||||
{
|
||||
return get_tid() == utils::main_tid;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue