Skip to content

Instantly share code, notes, and snippets.

@bibhas
Created July 12, 2020 07:08
Show Gist options
  • Select an option

  • Save bibhas/5c242cf20f9bc691a4a4224fe67660e7 to your computer and use it in GitHub Desktop.

Select an option

Save bibhas/5c242cf20f9bc691a4a4224fe67660e7 to your computer and use it in GitHub Desktop.
//
// SUGlobalUpdateLock.h
// Sparkle
//
// Created by Bibhas Acharya on 7/12/20.
// Copyright © 2020 Sparkle Project. All rights reserved.
//
#ifndef SUGLOBALUPDATELOCK_H
#define SUGLOBALUPDATELOCK_H
#import <Foundation/Foundation.h>
@interface SUGlobalUpdateLock : NSObject
+ (SUGlobalUpdateLock *)sharedLock;
- (BOOL)tryLock;
- (void)unlock;
@end
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment