plan 9 kernel history: overview | file list | diff list

1990/1012/gnot/clock.c (diff list | history)

1990/1012/sys/src/9/gnot/clock.c:106,1191990/1106/sys/src/9/gnot/clock.c:106,120 (short | long | prev | next)
1990/1004    
			p->time[p->insyscall]++; 
1990/0312    
	} 
1990/03091    
	if(canlock(&m->alarmlock)){ 
		if(m->alarm){ 
			a = m->alarm; 
			a->dt--; 
1990/0728    
			for(n = 0; a && a->dt<=0 && n<NA; n++){ 
1990/1106    
		a = m->alarm; 
		if(a){ 
			for(n=0; a && a->dt<=0 && n<NA; n++){ 
1990/0728    
				alist[n] = a; 
1990/03091    
				delete(&m->alarm, 0, a); 
				a = m->alarm; 
			} 
1990/1106    
			if(a) 
				a->dt--; 
1990/0728    
			unlock(&m->alarmlock); 
 
			/*  execute alarm functions outside the lock */ 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)