mirror of
https://gitflic.ru/project/npo_rbs/repka-os_kernel.git
synced 2025-04-23 04:27:59 +00:00
12 lines
304 B
Text
12 lines
304 B
Text
cat <<EOF
|
|
/**
|
|
* ${class}${atomicname}() - atomic decrement unless positive with ${desc_order} ordering
|
|
* @v: pointer to ${atomic}_t
|
|
*
|
|
* If (@v <= 0), atomically updates @v to (@v - 1) with ${desc_order} ordering.
|
|
*
|
|
* ${desc_noinstr}
|
|
*
|
|
* Return: @true if @v was updated, @false otherwise.
|
|
*/
|
|
EOF
|