mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-08 18:52:50 +00:00
Several places in the code have constructions like this: if (bool_variable) { atomic_set_bit(flags, FLAG); } else { atomic_clear_bit(flags, FLAG); } To reduce the amount of code for such situations, introduce a new atomic_set_bit_to() helper which lets you condense the above five lines to a single one: atomic_set_bit_to(flags, FLAG, bool_variable); Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> |
||
---|---|---|
.. | ||
application_development | ||
benchmarks | ||
bluetooth | ||
boards | ||
booting/stub | ||
cmsis_rtos_v1 | ||
cmsis_rtos_v2 | ||
compliance | ||
coverage | ||
crypto | ||
drivers | ||
include | ||
kernel | ||
lib | ||
misc | ||
net | ||
posix | ||
shell | ||
subsys | ||
unit | ||
ztest | ||
CMakeLists.txt | ||
Kconfig |