use thread specific exit contexts for each native session, fixes #72
This commit is contained in:
parent
4ce973e9d8
commit
470f70282b
@ -153,7 +153,7 @@ void init_dynload(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void (*program_exit)(int ret);
|
static __thread void (*program_exit)(int ret);
|
||||||
|
|
||||||
void register_exit(void (*cb)(int ret))
|
void register_exit(void (*cb)(int ret))
|
||||||
{
|
{
|
||||||
|
@ -150,7 +150,7 @@ void init_dynload(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void (*program_exit)(int ret);
|
static __thread void (*program_exit)(int ret);
|
||||||
|
|
||||||
void register_exit(void (*cb)(int ret))
|
void register_exit(void (*cb)(int ret))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user