Add exception handle for multithread case.
authorXuelian <xuelian.bai@samsung.com>
Tue, 12 May 2020 11:00:12 +0000 (19:00 +0800)
committerXuelian Bai <xuelian.bai@samsung.com>
Tue, 21 Feb 2023 06:32:48 +0000 (14:32 +0800)
commit27470f329ef9d4b53e13f85af391ba5b42025d43
tree3069107ba1e0931437f220e7bb2e077221229369
parente24abfa7c562688854da97749012a9384826cf2a
Add exception handle for multithread case.

In some cases, main thread got some problem and exit with calling
_eglAtExit, while another thread may still be running, that will
cause assert in mesa.

Change-Id: I6ee87abcb8c818e8a6808cd6098f4061bf7779b2
Signed-Off-by: Xuelian Bai <xuelian.bai@samsung.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/main/egldevice.c