Commit a3e8042a authored by Xavier Thompson's avatar Xavier Thompson

Rename StealingDeque into Deque

parent 0ae0823a
......@@ -121,7 +121,7 @@ namespace typon::rt
template <typename T>
struct StealingDeque
struct Deque
{
using u8 = typename RingBuffer<T>::u8;
using u64 = typename RingBuffer<T>::u64;
......@@ -133,11 +133,11 @@ namespace typon::rt
std::atomic<u64> _bottom {1};
std::atomic<Array *> _array;
StealingDeque(u8 bits = 2) noexcept
Deque(u8 bits = 2) noexcept
: _array(new Array(bits))
{}
~StealingDeque()
~Deque()
{
delete _array;
}
......@@ -205,11 +205,5 @@ namespace typon::rt
}
namespace riften::detail {
template <typename T>
using Deque = typon::rt::StealingDeque<T>;
}
#endif // TYPON_DEQUE_HPP_INCLUDED
......@@ -20,7 +20,7 @@ namespace typon::rt
{
using uint = unsigned int;
using Task = Optional<continuation_handle>;
using Deque = StealingDeque<continuation_handle>;
using Deque = Deque<continuation_handle>;
static inline thread_local uint thread_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment