← Documentation
ADS-IDAC Engine 5.0.0
TreeState Struct Reference

Shared state between MPI server loop and visualization HTTP server. More...

#include <Server.h>

Public Attributes

std::mutex mu
 Guards all other members. More...
 
std::vector< SequenceReport > completed
 One report per finished sequence, in arrival order. More...
 
std::map< int, SequenceOutputData > output_data
 seq_id -> output data (PE events, end states) More...
 
int total_clients = 0
 Worker count (MPI size - 1) More...
 
int sequences_completed = 0
 Mirror of Server::sequences_completed_. More...
 
int queue_depth = 0
 Queued metadata-only tasks. More...
 
int num_free_clients = 0
 Idle workers. More...
 
long memory_mb = 0
 Server (rank 0) RSS [MB]. More...
 
double start_time = 0.0
 MPI_Wtime() at server construction [s]. More...
 

Detailed Description

Shared state between MPI server loop and visualization HTTP server.

Every member other than mu must be read and written with mu held: the MPI loop writes from the main thread, the HTTP server reads from its own thread. Allocated only when –viz-port is nonzero.

Definition at line 39 of file Server.h.

Member Data Documentation

◆ completed

std::vector<SequenceReport> TreeState::completed

One report per finished sequence, in arrival order.

Definition at line 41 of file Server.h.

◆ memory_mb

long TreeState::memory_mb = 0

Server (rank 0) RSS [MB].

Definition at line 47 of file Server.h.

◆ mu

std::mutex TreeState::mu

Guards all other members.

Definition at line 40 of file Server.h.

◆ num_free_clients

int TreeState::num_free_clients = 0

Idle workers.

Definition at line 46 of file Server.h.

◆ output_data

std::map<int, SequenceOutputData> TreeState::output_data

seq_id -> output data (PE events, end states)

Definition at line 42 of file Server.h.

◆ queue_depth

int TreeState::queue_depth = 0

Queued metadata-only tasks.

Definition at line 45 of file Server.h.

◆ sequences_completed

int TreeState::sequences_completed = 0

Mirror of Server::sequences_completed_.

Definition at line 44 of file Server.h.

◆ start_time

double TreeState::start_time = 0.0

MPI_Wtime() at server construction [s].

Definition at line 48 of file Server.h.

◆ total_clients

int TreeState::total_clients = 0

Worker count (MPI size - 1)

Definition at line 43 of file Server.h.


The documentation for this struct was generated from the following file: