I want to use "Condition Variables" implemented in pthread.h. I have tried to use Xilkernel, but its pthread has not functions like "pthread_cond_init" or "pthread_cond_wait". Does petalinux support for this kind of functions??
Sorry for the structure of my question. I am trying to explain as better as I could:
I want to implement an application over a FPGA. In the app I need to use "Condition Variables" with Pthread, but Xilkernel does not support for this. So I have thought in uClinux. Could I compile my app with functions such as "pthread_cond_init", "pthread_cond_wait" over uClinux??
We are using uClibc, which includes the LinuxThreads library for pthreads support. Condition variables are included in the linuxthreads functionality - the full API from the source is below.
I hope this answers your question.
[jwilliams@g512-9423 linuxthreads]$ grep "pthread_cond.*(" condvar.c int pthread_cond_init(pthread_cond_t *cond, int pthread_cond_destroy(pthread_cond_t *cond) int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) pthread_cond_timedwait_relative(pthread_cond_t *cond, int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, return pthread_cond_timedwait_relative(cond, mutex, abstime); int pthread_cond_signal(pthread_cond_t *cond) int pthread_cond_broadcast(pthread_cond_t *cond) int pthread_condattr_init(pthread_condattr_t *attr) int pthread_condattr_destroy(pthread_condattr_t *attr) int pthread_condattr_getpshared (const pthread_condattr_t *attr, int
*pshared) int pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.