C++ exceptions: pthread key allocation error for __gthread_key_create
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon Dec 5 07:19:14 UTC 2016
On 05/12/16 07:57, Chris Johns wrote:
> Is it the user who needs to account for the gthread key if using C++?
Yes, its up to the user to ensure that there are enough POSIX keys
available. This is quite a pain.
Why is no TLS value used (instead of the POSIX key)?
It would be possible to make the pthread_key_t self-contained, however,
for the thread-specific value you need some system provided storage
(currently the workspace).
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list