WIP: The Road to 1.4 #23
1 changed files with 5 additions and 0 deletions
|
@ -112,6 +112,11 @@ addEntry(EntryType type, StringView message) {
|
||||||
|
|
||||||
ArrayView<const LogEntry>
|
ArrayView<const LogEntry>
|
||||||
entries() {
|
entries() {
|
||||||
|
if(!_logMutex.try_lock()) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
_logMutex.unlock();
|
||||||
|
|
||||||
return _entries;
|
return _entries;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue