Commit e1a93b3f authored by Xavier Thompson's avatar Xavier Thompson

Move eventcount.hpp to fundamental/event_count.hpp

parent efb63e76
......@@ -4,11 +4,12 @@
#include <atomic>
#include <cstdint>
namespace typon
namespace typon::fdt::lock_free
{
template <unsigned int N = 10>
struct EventCount
struct event_count
{
using u64 = std::uint_fast64_t;
......@@ -59,4 +60,5 @@ namespace typon
}
#endif // TYPON_EVENTCOUNT_HPP_INCLUDED
......@@ -7,10 +7,10 @@
#include <thread>
#include <vector>
#include <typon/fundamental/event_count.hpp>
#include <typon/fundamental/random.hpp>
#include <typon/continuation.hpp>
#include <typon/eventcount.hpp>
#include <typon/deque.hpp>
......@@ -30,7 +30,7 @@ namespace typon
std::vector<Deque> _deque;
std::vector<std::thread> _thread;
std::atomic_bool _done {false};
EventCount<> _notifyer;
fdt::lock_free::event_count<> _notifyer;
const uint _parallelism;
static Scheduler & get() noexcept
......
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