htl: Fix initializing the key lock
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 14 Feb 2022 00:38:03 +0000 (01:38 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 14 Feb 2022 18:29:02 +0000 (19:29 +0100)
commit06dbfcced3101886029ea3a46bcc98887d60f61e
treed7e2af56eaacd37df5f19759cfba9c244ce15ff9
parent33038a7d917889547c711be158ed34739af26351
htl: Fix initializing the key lock

The static pthread_once_t in the pt-key.h header was creating one
pthread_once_t per includer.  We have to use a shared common
pthread_once_t instead.
sysdeps/htl/pt-key-create.c
sysdeps/htl/pt-key.h