NSMutableArray+QueueAdditions.h 411 Bytes
//
//  NSMutableArray+QueueAdditions.h
//  YHBarrage
//
//  Created by Arthur on 16/6/6.
//  Copyright © 2016年 YOHO!. All rights reserved.
//

#import <Foundation/Foundation.h>

#define MaxQueueCapacity 10000 // 队列最大容量(1w)

@interface NSMutableArray (QueueAdditions)

/**
 *  出队列
 *
 *  @return obj
 */
- (id)dequeue;

/**
 *  进队列
 *
 *  @param obj
 */
- (void) enqueue:(id)obj;
@end