Skip to content

Commit d316c98

Browse files
committed
Define jl_n_threads in only libjulia
Without this, it was defined in both `libjulia` and `libjulia-internal`, causing `libjulia-internal`'s updates to not be visible. (cherry picked from commit f1a39b6)
1 parent 47bd273 commit d316c98

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/julia.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,7 @@ JL_DLLEXPORT int jl_is_debugbuild(void) JL_NOTSAFEPOINT;
15101510
JL_DLLEXPORT jl_sym_t *jl_get_UNAME(void) JL_NOTSAFEPOINT;
15111511
JL_DLLEXPORT jl_sym_t *jl_get_ARCH(void) JL_NOTSAFEPOINT;
15121512
JL_DLLEXPORT jl_value_t *jl_get_libllvm(void) JL_NOTSAFEPOINT;
1513+
extern JL_DLLIMPORT int jl_n_threads;
15131514

15141515
// environment entries
15151516
JL_DLLEXPORT jl_value_t *jl_environ(int i);

src/threading.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ jl_get_ptls_states_func jl_get_ptls_states_getter(void)
221221
}
222222
#endif
223223

224-
JL_DLLEXPORT int jl_n_threads;
225224
jl_ptls_t *jl_all_tls_states JL_GLOBALLY_ROOTED;
226225

227226
// return calling thread's ID

0 commit comments

Comments
 (0)