Skip to content

gthread: Annotate g_thread_exit() with G_NORETURN

Philip Chimento requested to merge ptomato/glib:gthread-exit-noreturn into main

pthread_exit() is also marked noreturn, and the function does not in fact return.

For win32, I can't find a copy of the header file to check if _endthreadex() is marked with __declspec(noreturn), but its documentation does say that it never returns.

Merge request reports