Skip to content

Why is NSLock necessary to ensure thread-safety? #1

@tonyxiao

Description

@tonyxiao

This is more of a general question rather than a specific issue, but I was wondering, why is NSLock necessary to make sure SPSearchStore is thread-safe? SPSearchStore seems to use NSOperationQueue quite extensively, which has serial queues that are both more efficient than locks and achieve the same effect. Thoughts?

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