summaryrefslogtreecommitdiff
path: root/docs/type_system/lock.md
blob: 151c1aa8d571fd8b6b537bdfbd056cfe719f73c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Lock

---

```text
Lock[[] TARGET]
```

## Type Body Object Definitions

```c
typedef struct {
    kpl_type *target;
} kpl_type_body_lock;
```

Prevent access to `TARGET` until a mutation occurs