Files
swift-nio/Sources/NIO
Johannes Weiss 14327af193 don't leak pthread_keys (#157)
Motivation:

Previously we leaked `pthread_key`s as we only ever called
`pthread_key_create` but never `pthread_key_delete`. This patch fixes
that.

Modifications:

- made `ThreadSpecificVariable` a class (so we get lifecycle management
  through ARC)
- instead of just storing the value, store `Box<(ThreadSpecificVariable<T>, T)>`
  so we can control the lifecycle of the `ThreadSpecificVariable` as
  needed

Result:

We don't leak `pthread_key`s anymore.
2019-02-26 14:57:47 +00:00
..
2019-02-25 18:20:22 +00:00
2019-02-19 18:31:26 +00:00
2019-02-25 18:20:22 +00:00
2019-02-26 12:58:41 +00:00
2018-09-27 11:32:43 +01:00
2019-02-01 15:34:59 +00:00
2019-02-25 18:20:22 +00:00
2019-02-26 14:57:47 +00:00
2018-12-07 21:15:34 +00:00