酷店

TBSDKThreadSafeMutableArry.h 593B

123456789101112131415161718192021222324
  1. //
  2. // TBThreadSafeMutableArry.h
  3. // TBLocationFramework
  4. //
  5. // Created by striveliu on 7/4/14.
  6. // Copyright (c) 2014 taobao. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <pthread.h>
  10. @interface TBSDKThreadSafeMutableArry : NSArray
  11. {
  12. pthread_rwlock_t s_pthread_rwlock_t;
  13. NSMutableArray *_mutableArry;
  14. }
  15. - (void)addObject:(id)anObject;
  16. - (void) insert: (id) object atIndex: (NSUInteger) atIndex;
  17. - (void)removeObjectAtIndex:(NSUInteger)index;
  18. - (void)removeAllObjects;
  19. - (void)removeLastObject;
  20. - (id)objectAtIndex:(NSUInteger)index;
  21. - (NSUInteger)getCount;
  22. @end