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

1998/0522/port/taslock.c (diff list | history)

1998/0228/sys/src/9/port/taslock.c:68,731998/0522/sys/src/9/port/taslock.c:68,76 (short | long | prev | next)
Debugging: check for ilock loop on uniprocessor and unlock of unlocked lock.
rsc Fri Mar 4 12:44:25 2005
1993/1204    
		return; 
1995/0110    
	} 
 
1998/0522    
	if(conf.nmach < 2) 
		panic("ilock: no way out: pc %uX\n", pc); 
 
1993/0830    
	for(;;){ 
1998/0228    
		splx(x); 
1994/0808    
		while(l->key) 
1998/0228/sys/src/9/port/taslock.c:96,1011998/0522/sys/src/9/port/taslock.c:99,106
1992/0222    
void 
unlock(Lock *l) 
{ 
1998/0522    
	if(l->key == 0) 
		print("unlock: not locked: pc %uX\n", getcallerpc(l)); 
1996/0522    
	l->pc = 0; 
1997/0327    
	l->key = 0; 
1997/0220    
	coherence(); 


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