Exemplo n.º 1
0
Arquivo: preload.c Projeto: passimm/rr
int pthread_mutex_timedlock(pthread_mutex_t* mutex,
			    const struct timespec *abstime)
{
	disable_elision_for_mutex(mutex);
	/* No __pthread_mutex_timedlock stub exists, so we have to use the
	 * indirect call.
	 */
	return real_pthread_mutex_timedlock(mutex, abstime);

}
Exemplo n.º 2
0
int reeact_policy_pthread_mutex_timedlock(void *mutex, void *abs_timeout)
{
#ifdef _REEACT_DEFAULT_POLICY_
	return real_pthread_mutex_timedlock((pthread_mutex_t*)mutex,
					    (struct timespec*)abs_timeout);
#else
	// TODO: add user-policy here
	return 0;
#endif	
}