QB_ATOMIC_INT_SET(3)
π QB_ATOMIC_INT_SET β¨
okay bestie, so this is a page from the libqb Programmer's Manual, section 3 (that's the library-functions girlies, iykyk). Today's main character: qb_atomic_int_set π
πΈ NAME πΈ
qb_atomic_int_set β sets the value of the integer pointed to by atomic. literally that's it, that's the whole job, and she does it flawlessly π
β¨ SYNOPSIS β¨
#include <qb/qbatomic.h>
void qb_atomic_int_set(
volatile int32_t QB_GNUC_MAY_ALIAS *atomic, /* a pointer to an integer */
int32_t newval /* the new value */
);
no cap, that's the whole signature. two lil arguments, zero drama π¦
π«Ά PARAMS π«Ά
atomicβ a pointer to an integer. that's the lil guy getting a glow-up β¨newvalβ the new value. this is what she's becoming π
π DESCRIPTION π
She sets the value of the integer that atomic points at. simple. iconic. slay.
AND β and this is the part you need to remember bestie, don't skip it β she also acts as a memory barrier. the way that she's not just a setter, she's out here enforcing ordering too π₯ not me being obsessed with a function that does two things at once π
π SEE ALSO π
the whole friend group, fr fr:
qb_atomic_int_compare_and_exchange(3)qb_atomic_int_get(3)qb_atomic_int_add(3)qb_atomic_init(3)qb_atomic_pointer_get(3)qb_atomic_int_exchange_and_add(3)qb_atomic_pointer_compare_and_exchange(3)qb_atomic_pointer_set(3)
π COPYRIGHT π
Copyright (C) 2003 Sebastian Wilhelmi
okay that's the whole page, mwah π this came out of LIBQB, dated 2025-09-16, and it's QB_ATOMIC_INT_SET in section 3 β go forth and set your atomics, bestie, you got this ππ§π
π¦ where this page comes from
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- ubuntu resolute: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- ubuntu stonking: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms