# rb: \*breaking\* make API thread-safe · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/e19008292222d37b3a08a4e6a9d41553ecfcfd7e)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: e19008292222d37b3a08a4e6a9d41553ecfcfd7e

Requested commit: e19008292222d37b3a08a4e6a9d41553ecfcfd7e

Commit: e19008292222d37b3a08a4e6a9d41553ecfcfd7e

Tree: be696a18c9930da6492254a6bdae4d35ffc81662

Author: Shawn Landden

Committer: Shawn Landden

## Message

```
rb: *breaking* make API thread-safe

use @fieldParentPtr to access your context fields, which lie if you
struct that contains a rb.Tree member (without a pointer).

Also simplifies the init() function so rb.Tree can be initialized in a single line,
without having to use "undefined".

```

## Parents

- [de07ca77e7310af23fa494defbf7cc235afdac68](https://git.cafe/gitcafe/zig/commit/de07ca77e7310af23fa494defbf7cc235afdac68?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/e19008292222d37b3a08a4e6a9d41553ecfcfd7e?format=markdown)
