/
githubmirror
/
julia
Обзор
Документация
Войти
/
githubmirror
/
julia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.11.8
src/threading.h
36 строк
795 B
Diogo Netto
parallelize sweeping of object pools (#51282)
22 сен 2023, 21:48
Не верифицирован
22 сен 2023, 21:48
a127ab7
Код
Авторство
О чём код?
// This file is a part of Julia. License is MIT: https://julialang.org/license #ifndef THREADING_H #define THREADING_H #include <stdint.h> #ifdef __cplusplus extern "C" { #endif #include "julia.h" #define PROFILE_JL_THREADING 0 extern _Atomic(jl_ptls_t*) jl_all_tls_states JL_GLOBALLY_ROOTED; /* thread local storage */ typedef struct _jl_threadarg_t { int16_t tid; uv_barrier_t *barrier; void *arg; } jl_threadarg_t; // each thread must initialize its TLS jl_ptls_t jl_init_threadtls(int16_t tid) JL_NOTSAFEPOINT; // provided by a threading infrastructure void jl_init_threadinginfra(void); void jl_parallel_gc_threadfun(void *arg); void jl_concurrent_gc_threadfun(void *arg); void jl_threadfun(void *arg); #ifdef __cplusplus } #endif #endif /* THREADING_H */