Skip to content

ConcurrentObservableCollection is not thread safe #57

@adrianhall

Description

@adrianhall

The ConcurrentObservableCollection class does not actually protect against multiple writers, so it's not thread safe - particularly the pieces that write multiple times (like AddRange).

Todo:

  • Add an IAsyncLock and AsyncLock implementation.
  • Add a constructor that takes an IAsyncLock as well (for testing)
  • Wrap all the write operations in an IAsyncLock operation.
  • Add tests to each element to ensure that the IAsyncLock actually locks during the operation.

Metadata

Metadata

Assignees

Labels

ClientImprovements or additions to the client codeGood First IssueGood for newcomerswontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions