Lines Matching refs:sctx
471 ThreadSignalContext *sctx = SigCtx(thr); in SetJmp() local
472 buf->int_signal_send = sctx ? sctx->int_signal_send : 0; in SetJmp()
473 buf->in_blocking_func = sctx ? in SetJmp()
474 atomic_load(&sctx->in_blocking_func, memory_order_relaxed) : in SetJmp()
500 ThreadSignalContext *sctx = SigCtx(thr); in LongJmp() local
501 if (sctx) { in LongJmp()
502 sctx->int_signal_send = buf->int_signal_send; in LongJmp()
503 atomic_store(&sctx->in_blocking_func, buf->in_blocking_func, in LongJmp()
836 ThreadSignalContext *sctx = thr->signal_ctx; in DestroyThreadState() local
837 if (sctx) { in DestroyThreadState()
839 UnmapOrDie(sctx, sizeof(*sctx)); in DestroyThreadState()
1829 ThreadSignalContext *sctx = SigCtx(thr); in ProcessPendingSignals() local
1830 if (sctx == 0 || in ProcessPendingSignals()
1831 atomic_load(&sctx->have_pending_signals, memory_order_relaxed) == 0) in ProcessPendingSignals()
1833 atomic_store(&sctx->have_pending_signals, 0, memory_order_relaxed); in ProcessPendingSignals()
1835 internal_sigfillset(&sctx->emptyset); in ProcessPendingSignals()
1836 CHECK_EQ(0, pthread_sigmask(SIG_SETMASK, &sctx->emptyset, &sctx->oldset)); in ProcessPendingSignals()
1838 SignalDesc *signal = &sctx->pending_signals[sig]; in ProcessPendingSignals()
1845 CHECK_EQ(0, pthread_sigmask(SIG_SETMASK, &sctx->oldset, 0)); in ProcessPendingSignals()
1851 static bool is_sync_signal(ThreadSignalContext *sctx, int sig) { in is_sync_signal() argument
1855 (sctx && sig == sctx->int_signal_send); in is_sync_signal()
1861 ThreadSignalContext *sctx = SigCtx(thr); in rtl_generic_sighandler() local
1867 const bool sync = is_sync_signal(sctx, sig); in rtl_generic_sighandler()
1872 (sctx && atomic_load(&sctx->in_blocking_func, memory_order_relaxed))) { in rtl_generic_sighandler()
1874 if (sctx && atomic_load(&sctx->in_blocking_func, memory_order_relaxed)) { in rtl_generic_sighandler()
1875 atomic_store(&sctx->in_blocking_func, 0, memory_order_relaxed); in rtl_generic_sighandler()
1877 atomic_store(&sctx->in_blocking_func, 1, memory_order_relaxed); in rtl_generic_sighandler()
1891 if (sctx == 0) in rtl_generic_sighandler()
1893 SignalDesc *signal = &sctx->pending_signals[sig]; in rtl_generic_sighandler()
1901 atomic_store(&sctx->have_pending_signals, 1, memory_order_relaxed); in rtl_generic_sighandler()
1968 ThreadSignalContext *sctx = SigCtx(thr); in TSAN_INTERCEPTOR() local
1969 CHECK_NE(sctx, 0); in TSAN_INTERCEPTOR()
1970 int prev = sctx->int_signal_send; in TSAN_INTERCEPTOR()
1971 sctx->int_signal_send = sig; in TSAN_INTERCEPTOR()
1973 CHECK_EQ(sctx->int_signal_send, sig); in TSAN_INTERCEPTOR()
1974 sctx->int_signal_send = prev; in TSAN_INTERCEPTOR()
1980 ThreadSignalContext *sctx = SigCtx(thr); in TSAN_INTERCEPTOR() local
1981 CHECK_NE(sctx, 0); in TSAN_INTERCEPTOR()
1982 int prev = sctx->int_signal_send; in TSAN_INTERCEPTOR()
1984 sctx->int_signal_send = sig; in TSAN_INTERCEPTOR()
1988 CHECK_EQ(sctx->int_signal_send, sig); in TSAN_INTERCEPTOR()
1989 sctx->int_signal_send = prev; in TSAN_INTERCEPTOR()
1996 ThreadSignalContext *sctx = SigCtx(thr); in TSAN_INTERCEPTOR() local
1997 CHECK_NE(sctx, 0); in TSAN_INTERCEPTOR()
1998 int prev = sctx->int_signal_send; in TSAN_INTERCEPTOR()
2000 sctx->int_signal_send = sig; in TSAN_INTERCEPTOR()
2004 CHECK_EQ(sctx->int_signal_send, sig); in TSAN_INTERCEPTOR()
2005 sctx->int_signal_send = prev; in TSAN_INTERCEPTOR()