NSObject(FWFoundation)

@interface NSObject (FWFoundation)

/// 执行加锁(支持任意对象),等待信号量,自动创建信号量
- (void)fw_lock NS_REFINED_FOR_SWIFT;

/// 执行解锁(支持任意对象),发送信号量,自动创建信号量
- (void)fw_unlock NS_REFINED_FOR_SWIFT;

@end

Undocumented

  • 执行加锁(支持任意对象),等待信号量,自动创建信号量

    Declaration

    Objective-C

    - (void)fw_lock;
  • 执行解锁(支持任意对象),发送信号量,自动创建信号量

    Declaration

    Objective-C

    - (void)fw_unlock;