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

Function rt_atomic_dec_and_test

include/rtatomic.h:204–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202#endif /* RT_USING_STDC_ATOMIC */
203
204rt_inline rt_bool_t rt_atomic_dec_and_test(volatile rt_atomic_t *ptr)
205{
206 return rt_atomic_sub(ptr, 1) == 1;
207}
208
209rt_inline rt_atomic_t rt_atomic_fetch_add_unless(volatile rt_atomic_t *ptr, rt_atomic_t a, rt_atomic_t u)
210{

Callers 1

rt_ref_putFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected