summaryrefslogtreecommitdiff
path: root/docs/type_system/lock.md
blob: d03dbfa62843f59b858a411410633d872aeb1e18 (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_ptr target;
} kpl_type_body_lock;
```

Prevent access to `TARGET` until a mutation occurs