Vowpal Wabbit
Public Member Functions | Public Attributes | List of all members
node_socks Struct Reference

#include <allreduce.h>

Public Member Functions

 ~node_socks ()
 
 node_socks ()
 

Public Attributes

std::string current_master
 
socket_t parent
 
socket_t children [2]
 

Detailed Description

Definition at line 51 of file allreduce.h.

Constructor & Destructor Documentation

◆ ~node_socks()

node_socks::~node_socks ( )
inline

Definition at line 56 of file allreduce.h.

References CLOSESOCK.

57  {
58  if (current_master != "")
59  {
60  if (parent != -1)
61  CLOSESOCK(this->parent);
62  if (children[0] != -1)
63  CLOSESOCK(this->children[0]);
64  if (children[1] != -1)
65  CLOSESOCK(this->children[1]);
66  }
67  }
socket_t children[2]
Definition: allreduce.h:55
socket_t parent
Definition: allreduce.h:54
#define CLOSESOCK
Definition: allreduce.h:43
std::string current_master
Definition: allreduce.h:53

◆ node_socks()

node_socks::node_socks ( )
inline

Definition at line 68 of file allreduce.h.

68 { current_master = ""; }
std::string current_master
Definition: allreduce.h:53

Member Data Documentation

◆ children

socket_t node_socks::children[2]

◆ current_master

std::string node_socks::current_master

Definition at line 53 of file allreduce.h.

Referenced by AllReduceSockets::all_reduce(), and AllReduceSockets::all_reduce_init().

◆ parent

socket_t node_socks::parent

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