Skip to content

Thread safety issues #2

@SLaks

Description

@SLaks

This lock is completely useless.

  • You're locking on a writable field, so you may lock on different values at different times.
  • You're locking on a publicly visible value, so callers can introduce race conditions if they also lock on it.
  • Reference-type (pointer-sized) field writes are atomic anyway, so there is no risk here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions