Skip to content

SNThreadSafeSet

Ju Liaoyuan edited this page Dec 20, 2022 · 1 revision

SNThreadSafeSet Class Reference

  Inherits from NSMutableSet
  Declared in SNThreadSafeSet.h

SNThreadSafeSet.m

Overview

A simple implementation of thread safe mutable set.referenced source code: YYKit

Warning: Fast enumerate(for…in) and enumerator is not thread safe, use enumerate using block instead. When enumerate or sort with block/callback, do NOT send message to the dictionary inside the block/callback.

Clone this wiki locally