Commit ded73787 authored by Norbert Lange via Xenomai's avatar Norbert Lange via Xenomai Committed by Jan Kiszka

libcobalt: improve documentation regarding mutex initializers

Signed-off-by: default avatarNorbert Lange <norbert.lange@andritz.com>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 3edfcd88
...@@ -49,8 +49,12 @@ ...@@ -49,8 +49,12 @@
* By default, Cobalt mutexes are of the normal type, use no * By default, Cobalt mutexes are of the normal type, use no
* priority protocol and may not be shared between several processes. * priority protocol and may not be shared between several processes.
* *
* Note that only pthread_mutex_init() may be used to initialize a mutex, using * Note that pthread_mutex_init() should be used to initialize a mutex, using
* the static initializer @a PTHREAD_MUTEX_INITIALIZER is not supported. * the static initializer @a PTHREAD_MUTEX_INITIALIZER will delay the
* initialization to the first method called on the mutex and will
* most likely introduce switches to secondary mode.
* The documentation (and specifically api-tags) of the mutex services assumes
* a mutex was explicitly initialised with pthread_mutex_init().
* *
*@{ *@{
*/ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment