Project

General

Profile

Download (346 Bytes) Statistics
| Branch: | Tag: | Revision:
#include <atomic>
#include <cstdint>

const uint32_t NUM_PEERS = 16;
const uint32_t DATA_SIZE = 4;
const uint32_t VECTOR_LEN = 100;

struct cluster_node_t
{
uint32_t id;
std::atomic<uint32_t> lock;
uint32_t peers[NUM_PEERS];
double data[DATA_SIZE];
double tf_vector[VECTOR_LEN];
};

typedef struct cluster_node_t ClusterNode;
(1-1/2)