Skip to content

Thread-safe access to [OMPromise state] #34

@iljaiwas

Description

@iljaiwas

When I run my app with Xcode's Thread sanitizer enabled, I get an issue reported where read access to the 'state' property is not properly guarded (see attached screenshot). This could be fixed by either declaring the 'state' property as atomic, or by putting the read access within the @synchronized clause.

Any ideas what would be the best route to fix this?

Screen Shot 2020-01-11 at 21 22 04

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