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

Method EventHandler

include/ctrack.hpp:1094–1107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1092 {
1093 public:
1094 EventHandler(int line = __builtin_LINE(), const char *filename = __builtin_FILE(), const char *function = __builtin_FUNCTION(), std::chrono::high_resolution_clock::time_point start_time = std::chrono::high_resolution_clock::now()) : line(line)
1095
1096 {
1097
1098 previous_store_clear_cnt = store::store_clear_cnt;
1099 this->filename = filename;
1100 this->function = function;
1101 while (store::write_events_locked)
1102 {
1103 }
1104
1105 register_event();
1106 this->start_time = start_time;
1107 }
1108 ~EventHandler()
1109 {
1110 auto end_time = std::chrono::high_resolution_clock::now();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected