Skip to content

Commit

Permalink
use thread local exit contexes, fixes #72
Browse files Browse the repository at this point in the history
  • Loading branch information
tanersener committed Aug 15, 2021
1 parent 4ce973e commit 0ce3495
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down
2 changes: 1 addition & 1 deletion apple/src/fftools_cmdutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 0ce3495

Please sign in to comment.