Files
swift-nio/Sources
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-26 14:15:56 +00:00
2019-02-26 14:57:47 +00:00
2019-02-26 14:15:56 +00:00
2019-02-25 18:20:22 +00:00
2019-02-25 18:20:22 +00:00