mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Remove notifier
class
Poorly implemented condition variable.
This commit is contained in:
parent
b91661ae71
commit
a45f86a4a2
5 changed files with 2 additions and 178 deletions
|
@ -283,9 +283,6 @@ namespace utils
|
|||
// Increased on each destructor call
|
||||
atomic_t<ullong> m_destroy_count{0};
|
||||
|
||||
// Waitable object for the semaphore, signaled on decrease
|
||||
::notifier m_free_notifier;
|
||||
|
||||
// Aligned size of the storage for each object
|
||||
uint m_ssize = 0;
|
||||
|
||||
|
@ -340,9 +337,6 @@ namespace utils
|
|||
// Return semaphore
|
||||
m_head->m_sema--;
|
||||
}
|
||||
|
||||
// Signal free ID availability
|
||||
m_head->m_free_notifier.notify_all();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1048,11 +1042,5 @@ namespace utils
|
|||
{
|
||||
return get_head<Type>()->m_destroy_count;
|
||||
}
|
||||
|
||||
template <typename Type>
|
||||
std::shared_lock<::notifier> get_free_notifier() const
|
||||
{
|
||||
return std::shared_lock(get_head<Type>()->m_free_notifier, std::try_to_lock);
|
||||
}
|
||||
};
|
||||
} // namespace utils
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue