X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fsync%2Fevent_matching_broadcast.h;h=8006cdd1d33e8a99ef9c62cc03267487b5170ff0;hb=c55718515f6dddfd3584160b16c4a59f377782da;hp=3492f0a77d108ad5184b02b64cf7297cd0f50da1;hpb=f10c27a850e57bf88bf1d4440eb450729782f409;p=lttv.git diff --git a/lttv/lttv/sync/event_matching_broadcast.h b/lttv/lttv/sync/event_matching_broadcast.h index 3492f0a7..8006cdd1 100644 --- a/lttv/lttv/sync/event_matching_broadcast.h +++ b/lttv/lttv/sync/event_matching_broadcast.h @@ -32,12 +32,37 @@ typedef struct totTransmit; } MatchingStatsBroadcast; +typedef struct +{ + /* This array is used for graphs. It contains file pointers to files where + * broadcast differential delay points are output. + * + * accuracyPoints is divided into three parts depending on the position of an + * element accuracyPoints[i][j]: + * Lower triangular part of the matrix + * i > j + * This contains the difference t[i] - t[j] between the times when + * a broadcast was received in trace i and trace j. + * Diagonal part of the matrix + * i = j + * This area is not allocated. + * Upper triangular part of the matrix + * i < j + * This area is not allocated. + */ + FILE*** accuracyPoints; + + // pointsNb[traceNum][traceNum] has the same structure as accuracyPoints + unsigned int** pointsNb; +} MatchingGraphsBroadcast; + typedef struct { // Broadcast* pendingBroadcasts[dataStart] GHashTable* pendingBroadcasts; MatchingStatsBroadcast* stats; + MatchingGraphsBroadcast* graphs; } MatchingDataBroadcast; #endif