YBIBSentinel.h 460 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // YBIBSentinel.h
  3. // YBImageBrowserDemo
  4. //
  5. // Created by 波儿菜 on 2019/6/18.
  6. // Copyright © 2019 波儿菜. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /**
  11. Thread safe.
  12. */
  13. @interface YBIBSentinel : NSObject
  14. /// Returns the current value of the counter.
  15. @property (readonly) int32_t value;
  16. /**
  17. Increase the value atomically.
  18. @return The new value.
  19. */
  20. - (int32_t)increase;
  21. @end
  22. NS_ASSUME_NONNULL_END