Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ mpi_broadcast_command() [2/2]

std::unique_lock< std::mutex > stan::math::mpi_broadcast_command ( std::shared_ptr< mpi_command > &  command)
inline

Broadcasts a command instance to the listening cluster.

This function must be called on the root whenever the cluster is in listening mode and errs otherwise.

Parameters
commandshared pointer to an instance of a command class derived from mpi_command
Returns
A unique_lock instance locking the mpi_cluster

Definition at line 209 of file mpi_cluster.hpp.