mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 03:38:38 +12:00
Simplify named_thread construction
This commit is contained in:
parent
b8477a470f
commit
daa53b77cf
12 changed files with 70 additions and 38 deletions
|
@ -1133,6 +1133,18 @@ ppu_thread::ppu_thread(const ppu_thread_params& param, std::string_view name, u3
|
|||
}
|
||||
}
|
||||
|
||||
ppu_thread::thread_name_t::operator std::string() const
|
||||
{
|
||||
std::string thread_name = fmt::format("PPU[0x%x]", _this->id);
|
||||
|
||||
if (const std::string name = *_this->ppu_tname.load(); !name.empty())
|
||||
{
|
||||
fmt::append(thread_name, " %s", name);
|
||||
}
|
||||
|
||||
return thread_name;
|
||||
}
|
||||
|
||||
void ppu_thread::cmd_push(cmd64 cmd)
|
||||
{
|
||||
// Reserve queue space
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue