Leonard Crestez cb17fc6a8f Add support for LinuxThreads.
When using LinuxThreads pthread_setspecific triggers recursive
allocation on all threads. Work around this by creating a global linked
list of in-progress tsd initializations.

This modifies the _tsd_get_wrapper macro-generated function. When it has
to initialize an TSD object it will push the item to the linked list
first. If this causes a recursive allocation then the _get_wrapper
request is satisfied from the list. When pthread_setspecific returns the
item is removed from the list.

This effectively adds a very poor substitute for real TLS used only
during pthread_setspecific allocation recursion.

Signed-off-by: Crestez Dan Leonard <lcrestez@ixiacom.com>
2013-10-24 18:25:19 -07:00
..
2013-10-19 21:40:20 -07:00
2012-05-01 11:32:11 -07:00
2012-03-13 16:31:41 -07:00
2012-10-08 18:04:49 -07:00
2013-10-19 17:26:00 -07:00
2012-02-28 16:50:47 -08:00
2012-04-21 21:27:46 -07:00
2012-03-02 15:59:45 -08:00
2011-11-01 20:48:31 -07:00
2012-10-09 15:21:46 -07:00
2012-03-07 16:19:19 -08:00
2013-10-19 23:48:40 -07:00
2013-10-24 18:25:19 -07:00