Пример #1
0
void* finger_table_update(){
    int i;
	while(1){
		for(i=0;i < KEY_BITS;i++){
			fix_fingers(i);
		}
		sleep(1);
		stabilize();
		notify();
		heart_beat();
	}
	pthread_exit(0);
}
Пример #2
0
void network_heart_beat(void)
{
	static INT16U		counter = 10000;

	if(gd_system.state == GD_STATE_ONLINE)
	{
		counter++;
		if(counter >= gd_system.network_task.heartbeat_int)
		{
			heart_beat();
			counter = 0;
		}
	}

	
}