# `GSBaseObject initLock`

*Instance Method*

Prepares the object for synchronized access.

## Declaration

```swift
func initLock()
```

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

```python
initLock()
```

## Discussion

This initializes internal data-race protection and does not affect whether editing operations may modify the object. Call this only while setting up an object, before it can be accessed concurrently.

