From 1dc27702e9833062ed6aab6506eb559926c8d1f9 Mon Sep 17 00:00:00 2001 From: bernhard-gatzhammer Date: Tue, 27 Oct 2015 07:50:38 +0100 Subject: [PATCH] Added atomic variable destroy method to API description. EMBB-517 --- base_c/include/embb/base/c/atomic.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/base_c/include/embb/base/c/atomic.h b/base_c/include/embb/base/c/atomic.h index c0eff42..90c3309 100644 --- a/base_c/include/embb/base/c/atomic.h +++ b/base_c/include/embb/base/c/atomic.h @@ -102,6 +102,20 @@ void embb_atomic_init( ); /** + * Destroys an atomic variable and frees its resources. + * + * \pre The atomic variable has been initialized. + * \post The atomic variable is uninitialized. + * + * \ingroup C_BASE_ATOMIC + * \notthreadsafe + */ +void embb_atomic_destroy( + emb_atomic_TYPE* variable + /**< [IN,OUT] Pointer to atomic variable to be destroyed. */ + ); + +/** * Computes the logical "and" of the value stored in \p variable and \c value. * * \pre The atomic variable has been initialized with \c embb_atomic_init -- libgit2 0.26.0