Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

bsched.h File Reference

#include "if/core/wrap.h"
#include "lib/inputevt.h"

Go to the source code of this file.

Data Structures

struct  bio_source
 Source under bandwidth control. More...


Defines

#define BS_BW_MAX   (2*1024*1024)
#define BIO_F_READ   0x00000001 /**< Reading source */
 Reading source.

#define BIO_F_WRITE   0x00000002 /**< Writing source */
 Writing source.

#define BIO_F_ACTIVE   0x00000004 /**< Source active since b/w scheduled */
 Source active since b/w scheduled.

#define BIO_F_USED   0x00000008 /**< Source used this period */
 Source used this period.

#define BIO_F_RW   (BIO_F_READ|BIO_F_WRITE)
#define BIO_EMA_SHIFT   7
#define bio_bps(b)   ((b)->bw_last_bps)
#define bio_avg_bps(b)   ((b)->bw_slow_ema >> BIO_EMA_SHIFT)

Typedefs

typedef bsched bsched_t
typedef bio_source bio_source_t
 Source under bandwidth control.


Define Documentation

#define bio_avg_bps  )     ((b)->bw_slow_ema >> BIO_EMA_SHIFT)
 

#define bio_bps  )     ((b)->bw_last_bps)
 

#define BIO_EMA_SHIFT   7
 

#define BIO_F_ACTIVE   0x00000004 /**< Source active since b/w scheduled */
 

Source active since b/w scheduled.

#define BIO_F_READ   0x00000001 /**< Reading source */
 

Reading source.

#define BIO_F_RW   (BIO_F_READ|BIO_F_WRITE)
 

#define BIO_F_USED   0x00000008 /**< Source used this period */
 

Source used this period.

#define BIO_F_WRITE   0x00000002 /**< Writing source */
 

Writing source.

#define BS_BW_MAX   (2*1024*1024)
 


Typedef Documentation

typedef struct bio_source bio_source_t
 

Source under bandwidth control.

typedef struct bsched bsched_t
 


Generated on Sun Feb 12 10:49:59 2006 for Gtk-Gnutella by doxygen 1.3.6