mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-14 08:12:16 +00:00
hot-fix: clang-format
This commit is contained in:
parent
c4506da0ae
commit
f9ae945a55
4 changed files with 5 additions and 6 deletions
|
@ -31,7 +31,7 @@ public:
|
||||||
|
|
||||||
EventFlagInternal(const std::string& name, ThreadMode thread_mode, QueueMode queue_mode,
|
EventFlagInternal(const std::string& name, ThreadMode thread_mode, QueueMode queue_mode,
|
||||||
uint64_t bits)
|
uint64_t bits)
|
||||||
: m_name(name), m_thread_mode(thread_mode), m_queue_mode(queue_mode), m_bits(bits){};
|
: m_name(name), m_thread_mode(thread_mode), m_queue_mode(queue_mode), m_bits(bits) {};
|
||||||
|
|
||||||
int Wait(u64 bits, WaitMode wait_mode, ClearMode clear_mode, u64* result, u32* ptr_micros) {
|
int Wait(u64 bits, WaitMode wait_mode, ClearMode clear_mode, u64* result, u32* ptr_micros) {
|
||||||
std::unique_lock lock{m_mutex};
|
std::unique_lock lock{m_mutex};
|
||||||
|
|
|
@ -430,12 +430,11 @@ int PS4_SYSV_ABI scePthreadSetprio(PthreadT thread, int prio) {
|
||||||
auto* thread_state = ThrState::Instance();
|
auto* thread_state = ThrState::Instance();
|
||||||
if (thread == g_curthread) {
|
if (thread == g_curthread) {
|
||||||
g_curthread->lock.lock();
|
g_curthread->lock.lock();
|
||||||
} else if (int ret = thread_state->FindThread(thread, /*include dead*/0)) {
|
} else if (int ret = thread_state->FindThread(thread, /*include dead*/ 0)) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (thread->attr.sched_policy == SchedPolicy::Other ||
|
if (thread->attr.sched_policy == SchedPolicy::Other || thread->attr.prio == prio) {
|
||||||
thread->attr.prio == prio) {
|
|
||||||
thread->attr.prio = prio;
|
thread->attr.prio = prio;
|
||||||
ret = 0;
|
ret = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue