RTEMS CPU Kit with SuperCore
Functions
condget.c File Reference
#include <pthread.h>
#include <errno.h>
#include <rtems/system.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/condimpl.h>
#include <rtems/posix/time.h>
#include <rtems/posix/muteximpl.h>
Include dependency graph for condget.c:

Functions

POSIX_Condition_variables_Control_POSIX_Condition_variables_Get (pthread_cond_t *cond, Objects_Locations *location)
 POSIX Condition Variable Get. More...
 

Function Documentation

◆ _POSIX_Condition_variables_Get()

POSIX_Condition_variables_Control* _POSIX_Condition_variables_Get ( pthread_cond_t *  cond,
Objects_Locations location 
)

POSIX Condition Variable Get.

This function maps condition variable IDs to condition variable control blocks. If ID corresponds to a local condition variable, then it returns the_condition variable control pointer which maps to ID and location is set to OBJECTS_LOCAL. if the condition variable ID is global and resides on a remote node, then location is set to OBJECTS_REMOTE, and the_condition variable is undefined. Otherwise, location is set to OBJECTS_ERROR and the_condition variable is undefined.

Referenced by _POSIX_Condition_variables_Signal_support(), and pthread_cond_destroy().