# `GSLayer disableLock`

*Instance Method*

Disables thread synchronization for the layer.

## Declaration

```swift
func disableLock()
```

```objc
- (void) disableLock;
```

```python
disableLock()
```

## Discussion

Use this only when the layer cannot be accessed concurrently.

## See Also

### Locking

- [`GSLayer initLock`](/Core/GlyphsCore/GSLayer/initLock) — Enables thread synchronization for a layer created without locks.

