Skip to content

Commit

Permalink
Define jl_n_threads in only libjulia
Browse files Browse the repository at this point in the history
Without this, it was defined in both `libjulia` and
`libjulia-internal`, causing `libjulia-internal`'s updates to not be
visible.
  • Loading branch information
staticfloat committed Dec 19, 2020
1 parent 6937468 commit f1a39b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/julia.h
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,7 @@ JL_DLLEXPORT int jl_is_debugbuild(void) JL_NOTSAFEPOINT;
JL_DLLEXPORT jl_sym_t *jl_get_UNAME(void) JL_NOTSAFEPOINT;
JL_DLLEXPORT jl_sym_t *jl_get_ARCH(void) JL_NOTSAFEPOINT;
JL_DLLEXPORT jl_value_t *jl_get_libllvm(void) JL_NOTSAFEPOINT;
extern JL_DLLIMPORT int jl_n_threads;

// environment entries
JL_DLLEXPORT jl_value_t *jl_environ(int i);
Expand Down
1 change: 0 additions & 1 deletion src/threading.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ jl_get_ptls_states_func jl_get_ptls_states_getter(void)
}
#endif

JL_DLLEXPORT int jl_n_threads;
jl_ptls_t *jl_all_tls_states JL_GLOBALLY_ROOTED;

// return calling thread's ID
Expand Down

0 comments on commit f1a39b6

Please sign in to comment.