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

1991/0705/port/qlock.c (diff list | history)

1991/0614/sys/src/9/port/qlock.c:10,201991/0705/sys/src/9/port/qlock.c:10,17 (short | long | prev | next)
1991/0428    
{ 
	Proc *p; 
 
1991/0614    
	if(canlock(&q->use)){ 
		if(u) 
			u->p->hasspin = 0; 
1991/0705    
	if(canlock(&q->use)) 
1991/0428    
		return; 
1991/0614    
	} 
1991/0428    
	lock(&q->queue); 
	if(canlock(&q->use)){ 
		unlock(&q->queue); 


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