Skip to content

Fixed thread safety of reading log entries#11

Open
lostmsu wants to merge 1 commit intoiflight:masterfrom
losttech:sync
Open

Fixed thread safety of reading log entries#11
lostmsu wants to merge 1 commit intoiflight:masterfrom
losttech:sync

Conversation

@lostmsu
Copy link
Copy Markdown

@lostmsu lostmsu commented Aug 22, 2022

One can not read list entries from multiple threads when the list is being updated safely. Some kind of lock is required. I used ReaderWriterLockSlim.

Also refactored appending and getting entries into the LogForLevel class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant