Commit 2cefa770 authored by Dominik Charousset's avatar Dominik Charousset

Use deque instead of list for `fork_join` policy

parent 96f7acfa
......@@ -19,7 +19,7 @@
#ifndef CAF_POLICY_FORK_JOIN_HPP
#define CAF_POLICY_FORK_JOIN_HPP
#include <list>
#include <deque>
#include <chrono>
#include <thread>
#include <cstddef>
......@@ -79,7 +79,7 @@ class fork_join {
* @brief A queue implementation supporting fast push and pop
* operations on both ends of the queue.
*/
using priv_queue = std::list<resumable*>;
using priv_queue = std::deque<resumable*>;
template<class Worker>
void external_enqueue(Worker*, resumable* job) {
......
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