pEpObjCAdapterFramework/PEPSession.h
author Dirk Zimmermann <dz@pep.security>
Fri, 20 Sep 2019 10:01:48 +0200
branchIOSAD-141
changeset 1250 b6a4d30abd26
parent 841 8f9de3e520a0
permissions -rw-r--r--
IOSAD-141 Test for "hammering" the engine.
andreas@270
     1
//
andreas@270
     2
//  PEPSession.h
andreas@270
     3
//  pEpObjCAdapter
andreas@270
     4
//
andreas@270
     5
//  Created by Andreas Buff on 11.10.17.
andreas@270
     6
//  Copyright © 2017 p≡p. All rights reserved.
andreas@270
     7
//
andreas@270
     8
andreas@270
     9
#import <Foundation/Foundation.h>
andreas@270
    10
dirk@303
    11
#import "PEPSessionProtocol.h"
dirk@573
    12
andreas@272
    13
/**
andreas@272
    14
 Fake session to handle to the client.
andreas@272
    15
andreas@272
    16
 Assures all calls are handled on the correct internal session for the thread it is called on.
andreas@391
    17
 You can instantiate and use this session how often and wherever you want. Also over multiple threads.
andreas@272
    18
andreas@272
    19
 Note: You must call `cleanup()` once before your process gets terminated to be able to gracefully shutdown.
andreas@290
    20
 It is the clients responsibility not to make any calls to PEPSession in between the last call
andreas@295
    21
 to `cleanup()` and getting terminated.
andreas@272
    22
 */
dirk@303
    23
@interface PEPSession : NSObject <PEPSessionProtocol>
andreas@270
    24
andreas@276
    25
/**
andreas@276
    26
 You must call this method once before your process gets terminated to be able to gracefully shutdown.
andreas@290
    27
 You must not make any calls to PEPSession in between the last call to `cleanup()` and getting terminated.
andreas@290
    28
andreas@290
    29
 Only for performance reasons: call this method only if you have to.
andreas@276
    30
 */
dirk@291
    31
+ (void)cleanup;
andreas@272
    32
andreas@270
    33
@end