Exemplo n.º 1
0
/* helper */
static void
__fill_view(sup_view_t *view)
{
    exa_nodeid_t node;

    sup_view_init(view);
    for (node = 0; node < EXA_MAX_NODES_NUMBER; node++)
        sup_view_add_node(view, node);
}
Exemplo n.º 2
0
/**
 * Mark a node as being alive
 *
 * \param[in] node  Node to mark
 */
static void
mark_alive(sup_node_t *node)
{
  node->last_seen = 0;

  if (!self_sees(node))
    {
      __trace("node %u alive", node->id);
      sup_view_add_node(&self->view, node->id);
      self_view_changed = true;
    }
}