MCPcopy Create free account
hub / github.com/Compaile/ctrack / store

Class store

include/ctrack.hpp:697–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695 typedef std::map<unsigned int, std::vector<unsigned int>> sub_events;
696
697 struct store
698 {
699 inline static std::atomic<bool> write_events_locked = false;
700 inline static std::mutex event_mutex;
701 inline static std::chrono::high_resolution_clock::time_point track_start_time = std::chrono::high_resolution_clock::now();
702 inline static std::atomic<unsigned int> store_clear_cnt = 0;
703
704 inline static std::atomic<int> thread_cnt = -1;
705 inline static std::deque<t_events> a_events{};
706 inline static std::deque<sub_events> a_sub_events{};
707
708 inline static std::deque<unsigned int> a_current_event_id{}, a_current_event_cnt{}, a_string_id{};
709
710 inline static std::deque<int> a_thread_ids{};
711 };
712
713 inline thread_local t_events *event_ptr = nullptr;
714 inline thread_local sub_events *sub_events_ptr = nullptr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected