another.im-ios/Monal/Classes/MLProcessLock.h
2024-11-18 15:53:52 +01:00

27 lines
725 B
Objective-C
Executable file

//
// 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