# `GSLayer initLock`

*Instance Method*

Enables thread synchronization for a layer created without locks.

## Declaration

```swift
func initLock()
```

```objc
- (void) initLock;
```

```python
initLock()
```

## See Also

### Locking

- [`GSLayer disableLock`](/Core/GlyphsCore/GSLayer/disableLock) — Disables thread synchronization for the layer.

