GNUnet 0.21.1
gnunet_load_lib.h File Reference

Functions related to load calculations. More...

#include "gnunet_common.h"
#include "gnunet_time_lib.h"
Include dependency graph for gnunet_load_lib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define GNUNET_LOAD_value_free(lv)   GNUNET_free (lv)
 Free a load value. More...


struct GNUNET_LOAD_ValueGNUNET_LOAD_value_init (struct GNUNET_TIME_Relative autodecline)
 Create a new load value. More...
void GNUNET_LOAD_value_set_decline (struct GNUNET_LOAD_Value *load, struct GNUNET_TIME_Relative autodecline)
 Change the value by which the load automatically declines. More...
double GNUNET_LOAD_get_load (struct GNUNET_LOAD_Value *load)
 Get the current load. More...
double GNUNET_LOAD_get_average (struct GNUNET_LOAD_Value *load)
 Get the average value given to update so far. More...
void GNUNET_LOAD_update (struct GNUNET_LOAD_Value *load, uint64_t data)
 Update the current load. More...

Detailed Description

Functions related to load calculations.

Definition in file gnunet_load_lib.h.