Builds and runs on both windows and ubuntu

This commit is contained in:
EricLiu2000
2019-06-25 13:20:49 -04:00
parent 92dc23fa4b
commit f45bd6772f
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ public:
Error = 0x30
};
APIEvent() : eventStruct({}), device(nullptr), serial(), timepoint() {}
APIEvent() : eventStruct({}), serial(), timepoint(), device(nullptr) {}
APIEvent(APIEvent::Type event, APIEvent::Severity severity, const Device* device = nullptr);
const neoevent_t* getNeoEvent() const noexcept { return &eventStruct; }
+1 -1
View File
@@ -39,7 +39,7 @@ public:
}
void add(APIEvent::Type type, APIEvent::Severity severity, const Device* forDevice = nullptr) {
std::lock_guard<std::mutex> lk(mutex);
add_internal(APIEvent::APIEvent(type, severity, forDevice));
add_internal(APIEvent(type, severity, forDevice));
}
void discard(EventFilter filter = EventFilter());