ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
atomic.h File Reference

⚛️ Atomic operations abstraction layer with debug tracking More...

Go to the source code of this file.

Data Structures

struct  atomic_t
 Atomic value wrapper for integral/boolean types. More...
struct  atomic_ptr_t
 Atomic value wrapper for integral/boolean types. More...

Macros

#define ATOMIC_REGISTER_AUTO(name, parent_ptr)
 Register an atomic variable for debug tracking with automatic name generation.
#define ATOMIC_PTR_REGISTER_AUTO(name)
 Register an atomic pointer variable for debug tracking with automatic name generation.
#define ATOMIC_INIT_AUTO(...)
 Initialize an atomic_t with automatic named registration.
#define ATOMIC_PTR_INIT_AUTO(...)
 Initialize an atomic_ptr_t with automatic named registration.
#define _atomic_init_auto(name)
#define _atomic_ptr_init_auto(name)

Functions

bool atomic_load_bool (atomic_t *a)
 Atomic pointer wrapper.
bool atomic_load_bool_impl (const atomic_t *a)
void atomic_store_bool (atomic_t *a, bool value)
 Atomically store a boolean value.
void atomic_store_bool_impl (atomic_t *a, uint64_t value)
bool atomic_cas_bool (atomic_t *a, bool *expected, bool new_value)
 Atomically compare-and-swap a boolean.
bool atomic_cas_bool_impl (atomic_t *a, bool *expected, bool new_value)
bool atomic_exchange_bool (atomic_t *a, bool new_value)
 Atomically exchange a boolean and return the old value.
bool atomic_exchange_bool_impl (atomic_t *a, bool new_value)
int atomic_load_int (atomic_t *a)
 Atomically load an int value.
int atomic_load_int_impl (const atomic_t *a)
void atomic_store_int (atomic_t *a, int value)
 Atomically store an int value.
void atomic_store_int_impl (atomic_t *a, uint64_t value)
int atomic_fetch_add_int (atomic_t *a, int delta)
 Atomically add to an int and return the previous value.
int atomic_fetch_add_int_impl (atomic_t *a, int64_t delta)
int atomic_fetch_sub_int (atomic_t *a, int delta)
 Atomically subtract from an int and return the previous value.
int atomic_fetch_sub_int_impl (atomic_t *a, int64_t delta)
bool atomic_cas_int (atomic_t *a, int *expected, int new_value)
 Atomically compare-and-swap an int.
bool atomic_cas_int_impl (atomic_t *a, int *expected, int new_value)
uint64_t atomic_load_u64 (atomic_t *a)
 Atomically load a uint64_t value.
uint64_t atomic_load_u64_impl (const atomic_t *a)
void atomic_store_u64 (atomic_t *a, uint64_t value)
 Atomically store a uint64_t value.
void atomic_store_u64_impl (atomic_t *a, uint64_t value)
uint64_t atomic_fetch_add_u64 (atomic_t *a, uint64_t delta)
 Atomically add to a uint64_t and return the previous value.
uint64_t atomic_fetch_add_u64_impl (atomic_t *a, uint64_t delta)
uint64_t atomic_fetch_sub_u64 (atomic_t *a, uint64_t delta)
 Atomically subtract from a uint64_t and return the previous value.
uint64_t atomic_fetch_sub_u64_impl (atomic_t *a, uint64_t delta)
bool atomic_cas_u64 (atomic_t *a, uint64_t *expected, uint64_t new_value)
 Atomically compare-and-swap a uint64_t.
bool atomic_cas_u64_impl (atomic_t *a, uint64_t *expected, uint64_t new_value)
uint64_t atomic_exchange_u64 (atomic_t *a, uint64_t new_value)
 Atomically exchange a uint64_t and return the old value.
uint64_t atomic_exchange_u64_impl (atomic_t *a, uint64_t new_value)
void * atomic_ptr_load (atomic_ptr_t *a)
 Atomically load a pointer.
void * atomic_ptr_load_impl (const atomic_ptr_t *a)
void atomic_ptr_store (atomic_ptr_t *a, void *value)
 Atomically store a pointer.
void atomic_ptr_store_impl (atomic_ptr_t *a, void *value)
bool atomic_ptr_cas (atomic_ptr_t *a, void **expected, void *new_value)
 Atomically compare-and-swap a pointer.
bool atomic_ptr_cas_impl (atomic_ptr_t *a, void **expected, void *new_value)
void * atomic_ptr_exchange (atomic_ptr_t *a, void *new_value)
 Atomically exchange a pointer and return the old value.
void * atomic_ptr_exchange_impl (atomic_ptr_t *a, void *new_value)
int atomic_exchange_int (atomic_t *a, int new_value)
 Atomically exchange an int and return the old value.
int atomic_exchange_int_impl (atomic_t *a, int new_value)
void atomic_on_load (atomic_t *a)
void atomic_on_store (atomic_t *a)
void atomic_on_cas (atomic_t *a, bool success)
void atomic_on_fetch (atomic_t *a)
void atomic_ptr_on_load (atomic_ptr_t *a)
void atomic_ptr_on_store (atomic_ptr_t *a)
void atomic_ptr_on_cas (atomic_ptr_t *a, bool success)
void atomic_ptr_on_exchange (atomic_ptr_t *a)
void debug_atomic_init (void)
void debug_atomic_shutdown (void)
bool debug_atomic_is_initialized (void)
void debug_atomic_print_state (void)

Detailed Description

⚛️ Atomic operations abstraction layer with debug tracking

Date
March 2026

Provides a platform-independent wrapper for atomic operations similar to mutex_t, rwlock_t, and cond_t abstractions. Supports named registration, debug tracking, and integration with –sync-state output.

Design principles:

  • No recursion (atomics never depend on other atomics)
  • No mutexes in implementation (uses raw C11 atomics internally)
  • Named registration via named.c (NAMED_REGISTER_ATOMIC macro)
  • Debug-only timing and count tracking
  • Exchange operations for atomic min/max patterns (avoids TOCTOU races)

Supported types via typed macros:

  • bool: atomic_load_bool, atomic_store_bool, atomic_cas_bool, atomic_exchange_bool
  • int: atomic_load_int, atomic_store_int, atomic_fetch_add_int, atomic_fetch_sub_int
  • uint64_t: atomic_load_u64, atomic_store_u64, atomic_fetch_add_u64, atomic_fetch_sub_u64, atomic_exchange_u64
  • Pointers: atomic_ptr_load, atomic_ptr_store, atomic_ptr_cas, atomic_ptr_exchange

Usage:

// Declare a named atomic
atomic_t g_should_exit = ATOMIC_INIT(false, "g_should_exit");
// Load/store operations
// In release builds: zero overhead, calls _impl functions directly
// In debug builds: includes registration and timing hooks
void atomic_store_bool(atomic_t *a, bool value)
Atomically store a boolean value.
bool atomic_load_bool(atomic_t *a)
Atomic pointer wrapper.
atomic_t g_should_exit
Global application exit flag (shared across all modes).
Definition globals.c:31
Atomic value wrapper for integral/boolean types.
Definition atomic.h:76

Definition in file atomic.h.

Macro Definition Documentation

◆ _atomic_init_auto

#define _atomic_init_auto ( name)
Value:
{0}; \
static void __attribute__((constructor, used)) _atomic_reg_##name(void) { \
NAMED_REGISTER_ATOMIC(&name, #name, NULL); \
} \
typedef int _atomic_assert_##name
int32_t vec_t __attribute__((vector_size(4 *4)))
SESSION_CREATED (PACKET_TYPE_ACIP_SESSION_CREATED) - Session created response.
Definition vector.h:42

Definition at line 525 of file atomic.h.

525#define _atomic_init_auto(name) \
526 {0}; \
527 static void __attribute__((constructor, used)) _atomic_reg_##name(void) { \
528 NAMED_REGISTER_ATOMIC(&name, #name, NULL); \
529 } \
530 typedef int _atomic_assert_##name

◆ _atomic_ptr_init_auto

#define _atomic_ptr_init_auto ( name)
Value:
{0}; \
static void __attribute__((constructor, used)) _atomic_ptr_reg_##name(void) { \
NAMED_REGISTER_ATOMIC_PTR(&name, #name, NULL); \
} \
typedef int _atomic_ptr_assert_##name

Definition at line 532 of file atomic.h.

532#define _atomic_ptr_init_auto(name) \
533 {0}; \
534 static void __attribute__((constructor, used)) _atomic_ptr_reg_##name(void) { \
535 NAMED_REGISTER_ATOMIC_PTR(&name, #name, NULL); \
536 } \
537 typedef int _atomic_ptr_assert_##name

◆ ATOMIC_INIT_AUTO

#define ATOMIC_INIT_AUTO ( ...)
Value:
= _atomic_init_auto(__VA_ARGS__)
#define _atomic_init_auto(name)
Definition atomic.h:525

Initialize an atomic_t with automatic named registration.

In debug builds, automatically registers the atomic with named.c using a constructor function. In release builds, just initializes to {0}.

Usage:

// Declare with automatic registration:
static atomic_t g_counter ATOMIC_INIT_AUTO("g_counter");
// Or simpler - use the variable name directly:
static atomic_t g_counter ATOMIC_INIT_AUTO();
#define ATOMIC_INIT_AUTO(...)
Initialize an atomic_t with automatic named registration.
Definition atomic.h:507

Note: Currently requires GCC/Clang constructor attribute. For other compilers, use ATOMIC_REGISTER_AUTO(variable_name) separately.

Definition at line 507 of file atomic.h.

◆ ATOMIC_PTR_INIT_AUTO

#define ATOMIC_PTR_INIT_AUTO ( ...)
Value:
= _atomic_ptr_init_auto(__VA_ARGS__)
#define _atomic_ptr_init_auto(name)
Definition atomic.h:532

Initialize an atomic_ptr_t with automatic named registration.

Same as ATOMIC_INIT_AUTO but for atomic_ptr_t.

Definition at line 518 of file atomic.h.

◆ ATOMIC_PTR_REGISTER_AUTO

#define ATOMIC_PTR_REGISTER_AUTO ( name)
Value:
#define NAMED_REGISTER_ATOMIC_PTR(a, name, parent_ptr)
Register an _Atomic(void *) with automatic format specifier.

Register an atomic pointer variable for debug tracking with automatic name generation.

Same as ATOMIC_REGISTER_AUTO but for _Atomic(void *) variables.

Usage:

_Atomic(void *) g_buffer = {0};
#define ATOMIC_PTR_REGISTER_AUTO(name)
Register an atomic pointer variable for debug tracking with automatic name generation.
Definition atomic.h:482

Definition at line 482 of file atomic.h.

◆ ATOMIC_REGISTER_AUTO

#define ATOMIC_REGISTER_AUTO ( name,
parent_ptr )
Value:
NAMED_REGISTER_ATOMIC(&(name), #name, (uintptr_t)(const void *)(parent_ptr))
#define NAMED_REGISTER_ATOMIC(a, name, parent_ptr)
Register an atomic_t with automatic format specifier.

Register an atomic variable for debug tracking with automatic name generation.

Uses stringification to avoid repeating the variable name. Simplifies the declaration + registration pattern.

Usage:

// In header:
extern atomic_t g_counter;
// In source:
atomic_t g_counter = {0};
// In main/init:
ATOMIC_REGISTER_AUTO(g_counter, NULL);
#define ATOMIC_REGISTER_AUTO(name, parent_ptr)
Register an atomic variable for debug tracking with automatic name generation.
Definition atomic.h:469

Definition at line 469 of file atomic.h.

Referenced by server_main().

Function Documentation

◆ atomic_cas_bool()

bool atomic_cas_bool ( atomic_t * a,
bool * expected,
bool new_value )

Atomically compare-and-swap a boolean.

Parameters
aPointer to atomic_t
expectedExpected current value (passed by reference)
new_valueValue to store if comparison succeeds
Returns
true if swap succeeded, false otherwise

Referenced by handle_image_frame_packet(), keyboard_help_check_signal_cancel(), log_lock_terminal(), log_search_check_signal_cancel(), media_source_toggle_pause(), and splash_intro_start().

◆ atomic_cas_bool_impl()

bool atomic_cas_bool_impl ( atomic_t * a,
bool * expected,
bool new_value )

◆ atomic_cas_int()

bool atomic_cas_int ( atomic_t * a,
int * expected,
int new_value )

Atomically compare-and-swap an int.

Parameters
aPointer to atomic_t
expectedExpected current value (passed by reference)
new_valueValue to store if comparison succeeds
Returns
true if swap succeeded, false otherwise

Referenced by network_connection_ready(), network_server_run(), session_connection_start(), terminal_screen_cleanup(), and terminal_screen_log_destroy().

◆ atomic_cas_int_impl()

bool atomic_cas_int_impl ( atomic_t * a,
int * expected,
int new_value )

◆ atomic_cas_u64()

bool atomic_cas_u64 ( atomic_t * a,
uint64_t * expected,
uint64_t new_value )

Atomically compare-and-swap a uint64_t.

Parameters
aPointer to atomic_t
expectedExpected current value (passed by reference)
new_valueValue to store if comparison succeeds
Returns
true if swap succeeded, false otherwise

Referenced by buffer_share(), buffer_unref(), create_mixed_ascii_frame_for_client(), server_connection_pong_received(), and websocket_callback_timing_record().

◆ atomic_cas_u64_impl()

bool atomic_cas_u64_impl ( atomic_t * a,
uint64_t * expected,
uint64_t new_value )

◆ atomic_exchange_bool()

bool atomic_exchange_bool ( atomic_t * a,
bool new_value )

Atomically exchange a boolean and return the old value.

Parameters
aPointer to atomic_t
new_valueBoolean value to store
Returns
Previous boolean value

Atomically swaps the new value for the old value and returns the old value. Avoids TOCTOU race conditions present in load+check+cas patterns.

Referenced by audio_ring_buffer_read(), disconnect_client_for_bad_data(), display_disable_logging_for_first_frame(), handle_image_frame_h265_packet(), server_connection_lost(), session_capture_complete_open(), session_display_write_ascii_frame(), and signal_exit().

◆ atomic_exchange_bool_impl()

bool atomic_exchange_bool_impl ( atomic_t * a,
bool new_value )

◆ atomic_exchange_int()

int atomic_exchange_int ( atomic_t * a,
int new_value )

Atomically exchange an int and return the old value.

Parameters
aPointer to atomic_t
new_valueInt value to store
Returns
Previous int value

◆ atomic_exchange_int_impl()

int atomic_exchange_int_impl ( atomic_t * a,
int new_value )

◆ atomic_exchange_u64()

uint64_t atomic_exchange_u64 ( atomic_t * a,
uint64_t new_value )

Atomically exchange a uint64_t and return the old value.

Parameters
aPointer to atomic_t
new_valueValue to store
Returns
Previous uint64_t value

Used for atomic min/max updates and other exchange patterns where you need the old value atomically. Avoids TOCTOU race conditions present in load+check+cas.

Example (atomic minimum):

uint64_t old = atomic_exchange_u64(&stats->min_val, 0);
// old is the previous value, atomically
uint64_t atomic_exchange_u64(atomic_t *a, uint64_t new_value)
Atomically exchange a uint64_t and return the old value.
unsigned long long uint64_t

Referenced by quic_worker_wake().

◆ atomic_exchange_u64_impl()

uint64_t atomic_exchange_u64_impl ( atomic_t * a,
uint64_t new_value )

◆ atomic_fetch_add_int()

int atomic_fetch_add_int ( atomic_t * a,
int delta )

Atomically add to an int and return the previous value.

Parameters
aPointer to atomic_t
deltaValue to add
Returns
Previous value before the add

Referenced by mixer_add_source(), and network_server_foreach().

◆ atomic_fetch_add_int_impl()

int atomic_fetch_add_int_impl ( atomic_t * a,
int64_t delta )

◆ atomic_fetch_add_u64()

uint64_t atomic_fetch_add_u64 ( atomic_t * a,
uint64_t delta )

◆ atomic_fetch_add_u64_impl()

uint64_t atomic_fetch_add_u64_impl ( atomic_t * a,
uint64_t delta )

◆ atomic_fetch_sub_int()

int atomic_fetch_sub_int ( atomic_t * a,
int delta )

Atomically subtract from an int and return the previous value.

Parameters
aPointer to atomic_t
deltaValue to subtract
Returns
Previous value before the subtract

Referenced by mixer_remove_source(), and network_server_foreach().

◆ atomic_fetch_sub_int_impl()

int atomic_fetch_sub_int_impl ( atomic_t * a,
int64_t delta )

◆ atomic_fetch_sub_u64()

uint64_t atomic_fetch_sub_u64 ( atomic_t * a,
uint64_t delta )

Atomically subtract from a uint64_t and return the previous value.

Parameters
aPointer to atomic_t
deltaValue to subtract
Returns
Previous value before the subtract

Referenced by buffer_acquire(), buffer_budget_release(), buffer_domain_create(), log_mmap_write(), and ringbuffer_read().

◆ atomic_fetch_sub_u64_impl()

uint64_t atomic_fetch_sub_u64_impl ( atomic_t * a,
uint64_t delta )

◆ atomic_load_bool()

bool atomic_load_bool ( atomic_t * a)

Atomic pointer wrapper.

Atomically load a boolean value

Parameters
aPointer to atomic_t
Returns
Current boolean value

Referenced by acip_outbound_needs_keyframe(), acip_security_flush(), add_transport_client(), any_clients_sending_video(), audio_start_thread(), audio_stop_thread(), audio_thread_exited(), audio_write_samples(), capture_stop_thread(), capture_thread_exited(), client_audio_render_thread(), client_connection_start(), client_protocol_connection_lost(), client_video_render_thread(), ffmpeg_decoder_at_end(), ffmpeg_decoder_read_audio_samples(), handle_audio_batch_packet(), handle_audio_opus_packet(), handle_image_frame_h265_packet(), handle_image_frame_packet(), handle_ping_packet(), handle_runtime_settings(), http_renderer_job_is_done(), http_renderer_render_file(), keepalive_stop_thread(), keepalive_thread_exited(), log_lock_terminal(), log_msg(), log_search_needs_rerender(), mcp_http_run(), mcp_stdio_run(), media_source_is_paused(), media_source_read_audio(), media_source_read_video(), media_source_toggle_pause(), mutex_stack_cleanup(), mutex_stack_cleanup_current_thread(), network_server_start(), network_server_stop(), send_server_state_to_client(), server_connection_is_active(), server_connection_is_lost(), server_send_audio(), server_send_video(), session_capture_complete_open(), session_capture_media_active(), session_display_has_first_frame(), session_display_write_ascii_frame(), session_pipeline_run_main(), should_exit(), simple_frame_swap_update(), splash_intro_start(), splash_is_running(), splash_wait_for_animation(), stats_logger_thread(), threaded_send_audio_batch_packet(), threaded_send_audio_opus(), threaded_send_audio_opus_batch(), threaded_send_packet(), ui_controller_is_blocked(), ui_controller_title_start(), video_frame_commit(), video_frame_get_latest(), webrtc_datachannel_is_open(), webrtc_datachannel_send(), webrtc_peer_manager_check_gathering_timeouts(), webrtc_peer_manager_dispatch_ready(), websocket_server_run(), and websocket_transport_write_pending().

◆ atomic_load_bool_impl()

◆ atomic_load_int()

◆ atomic_load_int_impl()

int atomic_load_int_impl ( const atomic_t * a)

◆ atomic_load_u64()

uint64_t atomic_load_u64 ( atomic_t * a)

◆ atomic_load_u64_impl()

uint64_t atomic_load_u64_impl ( const atomic_t * a)

◆ atomic_on_cas()

void atomic_on_cas ( atomic_t * a,
bool success )

◆ atomic_on_fetch()

void atomic_on_fetch ( atomic_t * a)

◆ atomic_on_load()

void atomic_on_load ( atomic_t * a)

◆ atomic_on_store()

void atomic_on_store ( atomic_t * a)

◆ atomic_ptr_cas()

bool atomic_ptr_cas ( atomic_ptr_t * a,
void ** expected,
void * new_value )

Atomically compare-and-swap a pointer.

Parameters
aPointer to atomic_ptr_t
expectedExpected current pointer (passed by reference)
new_valuePointer value to store if comparison succeeds
Returns
true if swap succeeded, false otherwise

◆ atomic_ptr_cas_impl()

bool atomic_ptr_cas_impl ( atomic_ptr_t * a,
void ** expected,
void * new_value )

◆ atomic_ptr_exchange()

void * atomic_ptr_exchange ( atomic_ptr_t * a,
void * new_value )

Atomically exchange a pointer and return the old value.

Parameters
aPointer to atomic_ptr_t
new_valuePointer value to store
Returns
Previous pointer value

Referenced by ascii_otel_shutdown(), session_pipeline_create(), session_pipeline_destroy(), session_pipeline_run_main(), and webrtc_peer_manager_dispatch_ready().

◆ atomic_ptr_exchange_impl()

void * atomic_ptr_exchange_impl ( atomic_ptr_t * a,
void * new_value )

◆ atomic_ptr_load()

◆ atomic_ptr_load_impl()

void * atomic_ptr_load_impl ( const atomic_ptr_t * a)

◆ atomic_ptr_on_cas()

void atomic_ptr_on_cas ( atomic_ptr_t * a,
bool success )

◆ atomic_ptr_on_exchange()

void atomic_ptr_on_exchange ( atomic_ptr_t * a)

◆ atomic_ptr_on_load()

void atomic_ptr_on_load ( atomic_ptr_t * a)

◆ atomic_ptr_on_store()

void atomic_ptr_on_store ( atomic_ptr_t * a)

◆ atomic_ptr_store()

◆ atomic_ptr_store_impl()

void atomic_ptr_store_impl ( atomic_ptr_t * a,
void * value )

◆ atomic_store_bool()

void atomic_store_bool ( atomic_t * a,
bool value )

Atomically store a boolean value.

Parameters
aPointer to atomic_t
valueValue to store

Referenced by acds_server_init(), acds_server_shutdown(), acip_async_tcp_accepted_create(), acip_async_tcp_transport_detach(), acip_security_activate(), audio_destroy(), audio_init(), audio_ring_buffer_clear(), audio_ring_buffer_discard_pending(), audio_ring_buffer_read(), audio_sender_cleanup(), audio_sender_init(), audio_start_duplex(), audio_start_thread(), audio_stop_duplex(), audio_stop_thread(), capture_start_thread(), client_protocol_start(), create_client_render_threads(), disconnect_client_for_bad_data(), display_reset_for_new_connection(), ffmpeg_decoder_read_audio_samples(), ffmpeg_decoder_seek_to_timestamp(), handle_client_leave_packet(), handle_protocol_version_packet(), handle_stream_start_packet(), handle_stream_stop_packet(), http_renderer_job_cancel(), http_renderer_job_start(), http_renderer_submit(), keepalive_start_thread(), keyboard_help_signal_cancel(), log_destroy(), log_init(), log_search_enter_mode(), log_search_exit_mode(), log_search_handle_key(), log_search_init(), log_search_insert_text(), log_search_needs_rerender(), log_search_process_pending(), log_search_signal_cancel(), log_set_level(), log_shutdown_begin(), mcp_stdio_send(), media_source_create_interruptible(), media_source_pause(), media_source_resume(), mutex_stack_cleanup(), network_server_request_stop(), network_server_run(), network_server_stop(), process_decrypted_packet(), server_connection_init(), server_connection_lost(), server_connection_set_transport(), server_connection_shutdown(), session_capture_cancel_open(), session_capture_destroy(), session_capture_redraw_media(), session_display_create(), session_display_reset_first_frame(), session_display_write_ascii_frame(), session_pipeline_create(), session_pipeline_destroy(), session_pipeline_run_main(), session_server_like_run(), simple_frame_swap_create(), simple_frame_swap_update(), splash_intro_done(), splash_intro_start(), splash_wait_for_animation(), stop_client_render_threads(), tcp_server_destroy(), tcp_server_init(), ui_controller_finish(), ui_controller_shutdown(), ui_controller_title_ready(), ui_controller_title_start(), video_frame_buffer_create(), video_frame_commit(), video_frame_get_latest(), webrtc_close_datachannel(), webrtc_create_datachannel(), webrtc_datachannel_set_open_state(), websocket_server_destroy(), and websocket_server_init().

◆ atomic_store_bool_impl()

◆ atomic_store_int()

◆ atomic_store_int_impl()

void atomic_store_int_impl ( atomic_t * a,
uint64_t value )

◆ atomic_store_u64()

◆ atomic_store_u64_impl()

void atomic_store_u64_impl ( atomic_t * a,
uint64_t value )

◆ debug_atomic_init()

void debug_atomic_init ( void )

Referenced by main().

◆ debug_atomic_is_initialized()

bool debug_atomic_is_initialized ( void )

◆ debug_atomic_print_state()

void debug_atomic_print_state ( void )

◆ debug_atomic_shutdown()

void debug_atomic_shutdown ( void )