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

1990/1226/gnot/lock.c (diff list | history)

1990/0705/sys/src/9/gnot/lock.c:18,241990/1226/sys/src/9/gnot/lock.c:18,24 (short | long | prev | next)
1990/03091    
void 
lock(Lock *l) 
{ 
1990/0705    
	Lock *ll = l;	/* do NOT take the address of l */ 
1990/1226    
	Lock *ll = l;	/* do NOT take the address of ll */ 
1990/03091    
	int i; 
 
	/* 
1990/0705/sys/src/9/gnot/lock.c:43,491990/1226/sys/src/9/gnot/lock.c:43,49
1990/03091    
int 
canlock(Lock *l) 
{ 
1990/0705    
	Lock *ll = l;	/* do NOT take the address of l */ 
1990/1226    
	Lock *ll = l;	/* do NOT take the address of ll */ 
1990/0705    
	if(ll->key >= 0){ 
		ll->key |= 0x80; 
		ll->pc = ((ulong*)&l)[PCOFF]; 


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