wayland-client: handled case where pthread_setspecific failed.
authorJoonbum Ko <joonbum.ko@samsung.com>
Thu, 3 Sep 2020 04:36:31 +0000 (13:36 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Thu, 16 Feb 2023 10:12:13 +0000 (19:12 +0900)
commit540a202b22c01e52edc9ce5967ddbd28cb4ae1a6
tree1ab0bc84b106688d25dd1e4bd38435f0f8748945
parent31636851e9b0315ba0e2913f0fa91c6bc9b05261
wayland-client: handled case where pthread_setspecific failed.

 - The thread_data of wayland-client is managed in
  pthread specific and wl_list.
 - When pthread_setspecific fails, the returned
  error number will be printed.
 - If pthread_setspecific fails, pthread_getspecific
  in get_thread_data called next will also return null,
  but thread_data has been registered in wl_list.
 - In that case, it should be able to use thread_data in wl_list.

Change-Id: Ib4e436427715d0cc23bdcf0d8b6417212530803d
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/wayland-client.c