Revision a3877247dd56b0a7f3105faeb4f767d083e22e35 authored by Shuhei Kadowaki on 30 October 2021, 08:41:05 UTC, committed by GitHub on 30 October 2021, 08:41:05 UTC
This is more consistent with the arrangement of `InvokeCallInfo`, and will make succeeding processing a bit cleaner. This change also avoids unnecessary specializations in callinfo constructions.
1 parent 60e3e55
threading.h
// 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 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);
// provided by a threading infrastructure
void jl_init_threadinginfra(void);
void jl_threadfun(void *arg);
#ifdef __cplusplus
}
#endif
#endif /* THREADING_H */
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...