use thread specific exit contexts for each native session, fixes #72

This commit is contained in:
Taner Sener 2021-08-15 22:10:16 +03:00
parent 4ce973e9d8
commit 470f70282b
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ void init_dynload(void)
#endif
}
static void (*program_exit)(int ret);
static __thread void (*program_exit)(int ret);
void register_exit(void (*cb)(int ret))
{

View File

@ -150,7 +150,7 @@ void init_dynload(void)
#endif
}
static void (*program_exit)(int ret);
static __thread void (*program_exit)(int ret);
void register_exit(void (*cb)(int ret))
{