another.im-ios/Monal/Classes/MLProcessLock.h

27 lines
725 B
C
Raw Normal View History

2024-11-18 14:53:52 +00:00
//
// MLProcessLock.h
// monalxmpp
//
// Created by Thilo Molitor on 26.07.20.
// Copyright © 2020 Monal.im. All rights reserved.
//
#import "MLConstants.h"
NS_ASSUME_NONNULL_BEGIN
@interface MLProcessLock : NSObject
+(void) initializeForProcess:(NSString*) processName;
+(BOOL) checkRemoteRunning:(NSString*) processName;
+(void) waitForRemoteStartup:(NSString*) processName;
+(void) waitForRemoteStartup:(NSString*) processName withLoopHandler:(monal_void_block_t _Nullable) handler;
+(void) waitForRemoteTermination:(NSString*) processName;
+(void) waitForRemoteTermination:(NSString*) processName withLoopHandler:(monal_void_block_t _Nullable) handler;
+(void) lock;
+(void) unlock;
@end
NS_ASSUME_NONNULL_END