Exemple #1
0
int init_timerlist_lock( enum lists timerlist_id)
{
	get_timertable()->timers[timerlist_id].mutex=
		&(timer_group_lock[ timer_group[timerlist_id] ]);
	return 0;
}
Exemple #2
0
int init_timerlist_lock( unsigned int set, enum lists timerlist_id)
{
	get_timertable()[set].timers[timerlist_id].mutex=
		&(timer_group_lock[ set*TG_NR + timer_group[timerlist_id] ]);
	return 0;
}