# `GSLayer lockWriteAnchors`

*Instance Method*

Acquires the write lock for anchors.

## Declaration

```swift
func lockWriteAnchors()
```

```objc
- (void) lockWriteAnchors;
```

```python
lockWriteAnchors()
```

## See Also

### Anchor Locks

- [`GSLayer lockReadAnchors`](/Core/GlyphsCore/GSLayer/lockReadAnchors) — Acquires the read lock for anchors.
- [`GSLayer unlockReadAnchors`](/Core/GlyphsCore/GSLayer/unlockReadAnchors) — Releases the read lock for anchors.
- [`GSLayer unlockWriteAnchors`](/Core/GlyphsCore/GSLayer/unlockWriteAnchors) — Releases the write lock for anchors.

