Exit main thread with winpr_exit to trigger resource cleanup.
authorArmin Novak <armin.novak@thincast.com>
Fri, 9 Feb 2018 11:25:45 +0000 (12:25 +0100)
committerArmin Novak <armin.novak@thincast.com>
Mon, 12 Feb 2018 09:33:02 +0000 (10:33 +0100)
commit2d58e96dcc334083dc7634522cfeec7c58c3a32c
tree1eb7adc4c125b4b32b9f58226408ca6be5ad70ae
parent7e26c548668508ca59b5b204b4973d2a4ef8d4ce
Exit main thread with winpr_exit to trigger resource cleanup.

When using pthread_once with destructors they are only called,
if each thread (including the main thread) is exited with pthread_exit.
Introducing winpr_exit as a wrapper for that purpose.
17 files changed:
client/DirectFB/dfreerdp.c
client/Sample/freerdp.c
client/Wayland/wlfreerdp.c
client/X11/cli/xfreerdp.c
client/X11/generate_argument_docbook.c
rdtk/sample/rdtk_x11.c
server/Mac/mfreerdp.c
server/Sample/sfreerdp.c
server/Windows/cli/wfreerdp.c
server/shadow/shadow.c
winpr/include/winpr/winpr.h
winpr/libwinpr/smartcard/test/TestSmartCardStatus.c
winpr/libwinpr/utils/winpr.c
winpr/libwinpr/utils/wlog/wlog.c
winpr/tools/hash-cli/hash.c
winpr/tools/makecert-cli/CMakeLists.txt
winpr/tools/makecert-cli/main.c