Skip to content

<mutex>: Improve call_once performance by using Init­Once­Begin­Initialize / InitOnceComplete #606

Description

See Another pattern for using the InitOnce functions

The performance can be improved since callback is not passed to Windows API, so no exception pointer calls needed, only call InitOnceComplete in a destructor (of a local class).

Looks like ABI breaking change.

Activity

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

    fixedSomething works now, yay!performanceMust go faster

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions