Skip to content

Review lock usage vs. ConcurrentDictionary in Tca955x interrupt state management #2428

@krwq

Description

@krwq

There is a mix of lock-based synchronization and usage of ConcurrentDictionary for interrupt state management in the Tca955x driver. Based on feedback in PR #2427 (see review comment), please review all code in the Tca955x driver where locks are used for state management and evaluate if ConcurrentDictionary can be used instead for consistency and thread safety. If lock usage is still required, add rationale as comments in the code.

References:

Action items:

  • Audit interrupt state management code in Tca955x for locks
  • Replace locks with ConcurrentDictionary where possible
  • Add comments justifying any remaining locks

Metadata

Metadata

Assignees

Labels

Priority:3Work that is nice to havearea-device-bindingsDevice Bindings for audio, sensor, motor, and display hardware that can used with System.Device.GpioquestionFurther information is requested

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions