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

2002/0414/port/taslock.c (diff list | history)

2002/0414/sys/src/9/port/taslock.c:164,1712002/0416/sys/src/9/port/taslock.c:164,176 (short | long | prev | next)
1997/0327    
	l->key = 0; 
2002/0406    
	coherence(); 
 
2002/0414    
	if(up) 
		--up->nlocks; 
2002/0416    
	/* give up the processor if ... */ 
	if(up && --up->nlocks == 0	/* we've closed the last nexted lock */ 
	&& up->delaysched		/* we delayed scheduling because of the lock */ 
	&& up->state == Running){	/* we're in running state */ 
		up->delaysched = 0; 
		sched(); 
	} 
1994/0322    
} 
 
void 


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