Skip to content

Commit f1a39b6

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.
1 parent 6937468 commit f1a39b6

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
@@ -1515,6 +1515,7 @@ JL_DLLEXPORT int jl_is_debugbuild(void) JL_NOTSAFEPOINT;
15151515
JL_DLLEXPORT jl_sym_t *jl_get_UNAME(void) JL_NOTSAFEPOINT;
15161516
JL_DLLEXPORT jl_sym_t *jl_get_ARCH(void) JL_NOTSAFEPOINT;
15171517
JL_DLLEXPORT jl_value_t *jl_get_libllvm(void) JL_NOTSAFEPOINT;
1518+
extern JL_DLLIMPORT int jl_n_threads;
15181519

15191520
// environment entries
15201521
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)