5#include "../hardware/command_token.hpp"
6#include "../platform/dynamic_shared_object.h"
7#include "../system/access_flags.hpp"
72 std::vector<command_token> &
tokens
88 mutable std::mutex m_mutex;
90 std::vector<command_token> m_reads;
92 void drop_complete_reads();
Tracks the commands that access a piece of memory.
Definition access_hazard_tracker.hpp:29
void add(command_token token, access_flags access)
Record a command that accesses the memory.
void collect(access_flags access, std::vector< command_token > &tokens) const
Get the tokens that an access has to wait for.
access_hazard_tracker()
Construct a tracker with no command recorded.
void wait(access_flags access) const
Block the calling thread until an access can take place.
Container for multidimensional numeric data.
Definition array.hpp:31
Identifies a command submitted to a command_queue.
Definition command_token.hpp:27
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10