Small cleanup

This commit is contained in:
Nekotekina 2015-03-13 04:09:53 +03:00
parent 5c31037c04
commit c88e0a0eb9
9 changed files with 46 additions and 48 deletions

View file

@ -193,8 +193,8 @@ class squeue_t
public:
squeue_t()
: m_sync({})
{
m_sync.write_relaxed({});
}
u32 get_max_size() const
@ -202,9 +202,9 @@ public:
return sq_size;
}
bool is_full() const
bool is_full() const volatile
{
return m_sync.read_relaxed().count == sq_size;
return m_sync.data.count == sq_size;
}
bool push(const T& data, const std::function<bool()>& test_exit)