You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
443 B

//
// PEPQueue.m
// pEpiOSAdapter
//
// Created by Volker Birk on 15.07.15.
// Copyright (c) 2015 p≡p. All rights reserved.
//
#import "PEPQueue.h"
@implementation PEPQueue
- (void)enqueue:(id)object
{
@synchronized(self) {
[self insertObject:object atIndex:0];
}
}
- (id)dequeue
{
@synchronized(self) {
id object = [self lastObject];
[self removeLastObject];
return object;
}
}
@end