[Xenomai] PTHREAD_COND_INITIALIZER

Giulio Moro g.moro at qmul.ac.uk
Mon Oct 2 12:39:01 CEST 2017


The Xenomai documentation for pthread_cond_variable says 
"Note that only pthread_cond_init() may be used to initialize a condition variable, using the static initializer PTHREAD_COND_INITIALIZER is not supported."

However, demo/posix/cyclictest/cyclictest.c has the following line:
    static pthread_cond_t refresh_on_max_cond = PTHREAD_COND_INITIALIZER;
which seems to contradict the above prescription.



More information about the Xenomai mailing list