ccRTP 2.1.2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros
members.cpp File Reference

MembershipBookkeeping class implementation More...

#include "private.h"
#include <ccrtp/cqueue.h>
Include dependency graph for members.cpp:

Go to the source code of this file.

Macros

#define HASH(a)   ((a + (a >> 8)) % MembershipBookkeeping::sourceBucketsNum)
 

Detailed Description

MembershipBookkeeping class implementation

Todo:
implement the reallocation mechanism (e.g., when the number of ssrcs per collision list goes up to 2, make the size approx. four times bigger (0.5 ssrcs per list now. when the number of ssrcs per list goes down to 0.5, decrease four times. Do not use 2 or 0.5, but `2 + something' and `0.5 - somehting'). Always jumping between prime numbers -> provide a table from 7 to many.

Definition in file members.cpp.

Macro Definition Documentation

#define HASH (   a)    ((a + (a >> 8)) % MembershipBookkeeping::sourceBucketsNum)

Definition at line 166 of file members.cpp.