pEpObjCAdapter/PEPQueue.h
author Dirk Zimmermann <dz@pep.security>
Thu, 21 Mar 2019 12:37:32 +0100
branchrefactor
changeset 903 e9428f52fd88
parent 195 cbfe333e6df2
child 1253 0532de0ff84a
permissions -rw-r--r--
IOS-1480 Merge IOS-1480 into refactor.
dirk@187
     1
//
dirk@187
     2
//  PEPQueue.h
dirk@187
     3
//  pEpiOSAdapter
dirk@187
     4
//
dirk@187
     5
//  Created by Volker Birk on 15.07.15.
dirk@187
     6
//  Copyright (c) 2015 p≡p. All rights reserved.
dirk@187
     7
//
dirk@187
     8
dirk@187
     9
#import <Foundation/Foundation.h>
dirk@187
    10
edouard@194
    11
typedef void (^deleteOp)(id);
edouard@194
    12
dirk@187
    13
@interface PEPQueue : NSObject
dirk@187
    14
dirk@187
    15
- (void)enqueue:(id)object;
dirk@187
    16
edouard@193
    17
- (id)timedDequeue:(time_t*)timeout;
edouard@193
    18
dirk@187
    19
- (id)dequeue;
dirk@187
    20
dirk@187
    21
- (void)kill;
dirk@187
    22
edouard@194
    23
- (void)purge:(deleteOp)del;
edouard@194
    24
dirk@187
    25
@end