//
//  GSReadWriteLock.h
//  GlyphsKit
//
//  Created by Georg Seifert on 10.05.24.
//  Copyright © 2024 Georg Seifert. All rights reserved.
//

#import <Foundation/Foundation.h>

#ifndef QUICKLOOK
#ifndef LIBCORE
#define DO_LOCKING
#if DEBUG
//#define DO_LOCKING_TRACING
#endif  // DEBUG
#endif
#endif

@interface GSReadWriteLock : NSObject

- (void)lockRead;
- (void)unlockRead;
- (void)lockWrite;
- (void)unlockWrite;

#if DEBUG
@property (weak) NSObject *holder;
#endif

@end
