This keeps the behavior the same but allows the heartbeat to be used as a crude timer without including everything the housekeeper.h header includes. Moved the protocol level updates on the DCBs last_read value into dcb_read. This keeps the implementation nice and compact.
		
			
				
	
	
		
			12 lines
		
	
	
		
			222 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			222 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef _HK_HEARTBEAT_H
 | 
						|
#define _HK_HEARTBEAT_H
 | 
						|
 | 
						|
/**
 | 
						|
 * The global housekeeper heartbeat value. This value is increamente
 | 
						|
 * every 100ms and may be used for crude timing etc.
 | 
						|
 */
 | 
						|
 | 
						|
extern unsigned long	hkheartbeat;
 | 
						|
 | 
						|
#endif
 |