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
..
2018-02-08 11:21:55 +00:00
2018-12-10 17:59:24 +00:00
2019-02-19 18:31:26 +00:00
2019-02-25 18:20:22 +00:00
2019-02-12 11:11:45 +00:00
2019-02-12 11:11:45 +00:00
2019-02-12 11:11:45 +00:00
2019-02-14 13:25:30 +00:00
2019-02-19 18:31:26 +00:00
2019-02-25 18:20:22 +00:00
2019-02-25 18:20:22 +00:00
2019-02-01 15:34:59 +00:00
2019-02-21 19:43:23 +00:00
2019-02-25 18:20:22 +00:00
2019-02-19 18:46:01 +00:00
2019-02-25 18:20:22 +00:00
2018-04-03 11:44:14 +01:00
2019-02-19 18:31:26 +00:00
2019-02-26 10:35:38 +00:00
2019-02-19 16:52:00 +00:00
2019-02-26 12:58:41 +00:00
2018-03-02 15:40:52 +09:00
2019-02-19 16:52:00 +00:00
2019-02-19 16:52:00 +00:00
2019-01-24 16:42:53 +00:00
2019-01-24 17:09:13 +00:00
2018-12-14 12:34:08 +00:00
2019-01-07 11:52:22 +00:00
2018-09-27 11:32:43 +01:00
2019-02-01 15:34:59 +00:00
2019-01-07 11:52:22 +00:00
2018-11-13 14:49:08 +00:00
2019-02-19 16:52:00 +00:00
2019-02-19 18:46:01 +00:00
2019-02-14 13:25:30 +00:00
2019-02-25 18:20:22 +00:00
2019-02-25 16:51:47 +00:00
2019-02-25 16:51:47 +00:00
2019-02-19 18:46:01 +00:00
2019-02-19 18:46:01 +00:00
2019-02-14 13:25:30 +00:00
2018-08-01 15:57:27 +01:00
2018-03-02 15:40:52 +09:00
2018-02-28 09:46:29 +00:00
2019-02-14 13:25:30 +00:00
2018-12-10 17:59:24 +00:00
2018-12-17 19:19:40 +00:00
2019-02-01 15:34:59 +00:00
2019-02-19 18:31:26 +00:00
2019-02-14 13:25:30 +00:00
2019-02-06 17:08:00 +00:00
2019-02-26 14:57:47 +00:00
2018-12-07 21:15:34 +00:00
2018-12-07 21:15:34 +00:00