jhb e0724fd324 Use thr_once() with once_t controls to initialize various thread_key_t
objects used to provide per-thread storage in the RPC code.  Almost all
of these used double-checking with a dedicated mutex (tsd_lock) to do this
before.  However, that is not always safe with more relaxed memory orders.
There were also other bugs, such as one in __rpc_createrr() that caused a
new key to be allocated each time __rpc_createrr() was invoked.

PR:		threads/144558
Reported by:	Sam Robb  samrobb of averesystems com (key leak)
MFC after:	1 week
2010-03-10 13:23:25 +00:00
..
2009-10-26 17:27:30 +00:00
2010-03-02 16:58:04 +00:00
2010-01-12 17:38:23 +00:00
2010-02-01 20:53:55 +00:00
2010-01-02 09:58:07 +00:00
2010-01-02 09:58:07 +00:00
2010-03-09 19:16:43 +00:00
2010-01-27 21:01:21 +00:00
2010-01-18 19:10:14 +00:00
2010-01-21 15:01:09 +00:00
2010-01-13 18:53:06 +00:00
2010-01-02 09:58:07 +00:00
2010-01-02 09:58:07 +00:00
2010-03-04 22:01:11 +00:00