GNUnet  0.10.x
Macros | Functions
gnunet_load_lib.h File Reference
#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.

Macros

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

Functions

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

Author
Christian Grothoff

Functions related to load calculations

Definition in file gnunet_load_lib.h.