yate: Call pthread_key_create when the key is first accessed 120/head
authorRobert Högberg <robert.hogberg@gmail.com>
Fri, 9 Sep 2016 17:55:24 +0000 (19:55 +0200)
committerRobert Högberg <robert.hogberg@gmail.com>
Fri, 9 Sep 2016 17:55:24 +0000 (19:55 +0200)
commit1a4d76347af9440f016d6f1e0dc96f55240aa6fb
tree156890caa508fef9d2a84b31c27558f9a09d6fe7
parent1f0fb2538ba6fc306198fe2a9a4b976d63adb304
yate: Call pthread_key_create when the key is first accessed

pthread_key_create used to be called when a specific static key object was
initialized, but if another static object was initialized earlier and this
other object needed the key during its initialization yate would crash.

Fixes #99

Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
net/yate/patches/120-create-thread-key-on-access.patch [new file with mode: 0644]