https://github.com/JuliaLang/julia
Revision 8f76c69cdc3f85c7d29265dfe749f900094a01a3 authored by Shuhei Kadowaki on 19 March 2024, 05:42:23 UTC, committed by GitHub on 19 March 2024, 05:42:23 UTC
So that it can be tested in isolation easier.
1 parent 8e67f99
Raw File
Tip revision: 8f76c69cdc3f85c7d29265dfe749f900094a01a3 authored by Shuhei Kadowaki on 19 March 2024, 05:42:23 UTC
minor refactoring on `find_method_matches` (#53741)
Tip revision: 8f76c69
win32_ucontext.h
// This file is a part of Julia. License is MIT: https://julialang.org/license

#ifndef JL_WINUCONTEXT_H
#define JL_WINUCONTEXT_H

#include "dtypes.h"

#ifdef __cplusplus
extern "C" {
#endif

#include <setjmp.h>
typedef struct {
    struct stack_t {
        void *ss_sp;
        size_t ss_size;
    } uc_stack;
    jmp_buf uc_mcontext;
#ifdef _COMPILER_TSAN_ENABLED_
    void *tsan_state;
#endif
} win32_ucontext_t;
void jl_makecontext(win32_ucontext_t *ucp, void (*func)(void));
void jl_swapcontext(win32_ucontext_t *oucp, const win32_ucontext_t *ucp);
void jl_setcontext(const win32_ucontext_t *ucp);

#ifdef __cplusplus
}
#endif
#endif
back to top