-
Notifications
You must be signed in to change notification settings - Fork 1
/
ccl.hpp
28 lines (23 loc) · 1001 Bytes
/
ccl.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// Created by Austin Salgat on 4/1/2015.
// - Special thanks to A. Williams and his book "C++ Concurrency in Action" which was the bases for this library.
// - Note: The code, especially the concurrent implementations, are heavily commented since concurrent programming
// can be very hard to keep track of (at least for me!).
//
#ifndef CCL_CCL_HPP
#define CCL_CCL_HPP
namespace ccl {
unsigned int const MAXIMUM_RECORD_AGE = 100; // After 100 operations, old records are removed from publication list
}
// Concurrent stack (LIFO)
#include "containers/stack.hpp"
// Doubly-linked list (for fast insertion/erase but slow iteration)
//#include "containers/list.hpp"
// Concurrent Queue (FIFO)
#include "containers/queue.hpp"
// Operates like a stack/queue in that data can be pushed into it, but pop randomly removes one pushed entry (there
// are no guarantees about order).
#include "containers/data_pool.hpp"
// Concurrent Hash Map
#include "containers/map.hpp"
#endif //CCL_CCL_HPP