Skip to content

Sub Issue 5: EventManager thread safety fix (Lazy<T> singleton) #320

Closed

Description

@JusterZhu

Changes

Fix EventManager singleton — replace double-check locking with Lazy for guaranteed thread safety.

The old code used non-volatile _instance field with double-check locking pattern, which can fail under concurrent access.

Part of Sub Issue 5 of GeneralUpdate v2 refactor plan.

Activity

  1. added a commit that references this issue on May 24, 2026
    773227a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions