UC3M

Telematic/Audiovisual Syst./Communication Syst. Engineering

Systems Architecture

September 2015 - January 2016

11.4.8.  Atributtess: Clock

Once initialized condition variable can be set various parameters related to the condition. One of them is the clock on which the invoking thread sleeps:

 int pthread_condattr_getclock(const pthread_condattr_t *restrict attr,
		     clockid_t *restrict clock_id);
int pthread_condattr_setclock(pthread_condattr_t *attr,
		    clockid_t clock_id);