# std: consolidate all instances of std.Io.Threaded into a singleton · gitcafe/zig

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

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

Visibility: public

Requested revision: 77d2ad8c929680ed35fcfe6646f940518a07e7e4

Requested commit: 77d2ad8c929680ed35fcfe6646f940518a07e7e4

Commit: 77d2ad8c929680ed35fcfe6646f940518a07e7e4

Tree: f07cbefcc9b20049369188bfac27734a3c37c655

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std: consolidate all instances of std.Io.Threaded into a singleton

It's better to avoid references to this global variable, but, in the
cases where it's needed, such as in std.debug.print and collecting stack
traces, better to share the same instance.

```

## Parents

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

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