mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 19:28:43 +12:00
vm::wait_op improved
Now it accepts thread_t and its descendants (but may require adding friend vm::waiter_lock_t class)
This commit is contained in:
parent
ff1f6d3d4f
commit
71a378a3fb
3 changed files with 30 additions and 30 deletions
|
@ -2,6 +2,11 @@
|
|||
|
||||
#include "Utilities/Thread.h"
|
||||
|
||||
namespace vm
|
||||
{
|
||||
class waiter_lock_t;
|
||||
}
|
||||
|
||||
enum CPUThreadType
|
||||
{
|
||||
CPU_THREAD_PPU,
|
||||
|
@ -53,6 +58,8 @@ public:
|
|||
using thread_t::is_current;
|
||||
using thread_t::get_thread_ctrl;
|
||||
|
||||
friend vm::waiter_lock_t;
|
||||
|
||||
protected:
|
||||
CPUThread(CPUThreadType type, const std::string& name, std::function<std::string()> thread_name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue