diff --git a/src/lib/mutex.c b/src/lib/mutex.c index b7c5f1844..20b0cce70 100644 --- a/src/lib/mutex.c +++ b/src/lib/mutex.c @@ -31,11 +31,6 @@ LUMIERA_ERROR_DEFINE (MUTEX_UNLOCK, "Mutex unlocking failed"); LUMIERA_ERROR_DEFINE (MUTEX_DESTROY, "Mutex destroy failed"); -/** - * Initialize a mutex variable - * @param self is a pointer to the mutex to be initialized - * @return self as given - */ LumieraMutex lumiera_mutex_init (LumieraMutex self) { @@ -46,11 +41,7 @@ lumiera_mutex_init (LumieraMutex self) return self; } -/** - * Destroy a mutex variable - * @param self is a pointer to the mutex to be destroyed - * @return self as given - */ + LumieraMutex lumiera_mutex_destroy (LumieraMutex self) { diff --git a/src/lib/mutex.h b/src/lib/mutex.h index f19058e7a..7e67b550a 100644 --- a/src/lib/mutex.h +++ b/src/lib/mutex.h @@ -51,10 +51,20 @@ typedef struct lumiera_mutex_struct lumiera_mutex; typedef lumiera_mutex* LumieraMutex; +/** + * Initialize a mutex variable + * @param self is a pointer to the mutex to be initialized + * @return self as given + */ LumieraMutex lumiera_mutex_init (LumieraMutex self); +/** + * Destroy a mutex variable + * @param self is a pointer to the mutex to be destroyed + * @return self as given + */ LumieraMutex lumiera_mutex_destroy (LumieraMutex self);