mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12:00
Going to fix demuxer
This commit is contained in:
parent
b942da3f68
commit
8cb8298c03
4 changed files with 119 additions and 117 deletions
|
@ -5,7 +5,7 @@ static const volatile bool sq_no_wait = true;
|
|||
template<typename T, u32 SQSize = 666>
|
||||
class SQueue
|
||||
{
|
||||
std::mutex m_mutex;
|
||||
mutable std::mutex m_mutex;
|
||||
u32 m_pos;
|
||||
u32 m_count;
|
||||
T m_data[SQSize];
|
||||
|
@ -17,11 +17,16 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
const u32 GetSize() const
|
||||
u32 GetSize() const
|
||||
{
|
||||
return SQSize;
|
||||
}
|
||||
|
||||
bool IsFull() const volatile
|
||||
{
|
||||
return m_count == SQSize;
|
||||
}
|
||||
|
||||
bool Push(const T& data, const volatile bool* do_exit)
|
||||
{
|
||||
while (true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue