MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / _sigaddset

Function _sigaddset

components/lwp/lwp_signal.c:124–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124rt_inline void _sigaddset(lwp_sigset_t *set, int _sig)
125{
126 unsigned long sig = _sig - 1;
127
128 if (_LWP_NSIG_WORDS == 1)
129 {
130 set->sig[0] |= 1UL << sig;
131 }
132 else
133 {
134 set->sig[sig / _LWP_NSIG_BPW] |= 1UL << (sig % _LWP_NSIG_BPW);
135 }
136}
137
138rt_inline void _sigdelset(lwp_sigset_t *set, int _sig)
139{

Callers 4

sigqueue_enqueueFunction · 0.85
_catch_signal_lockedFunction · 0.85
_signal_action_flag_u2kFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected