예제 #1
0
	spmsg_t recv(bool wait_ = false) {
		spmsg_t msg;
		recv_queue.pop(msg, wait_);
		return msg;
	}
예제 #2
0
// Server interaction functions
int comm_send( msg_t msg ) {
  msg.send_ID = NODE_INFO.id;
  comm_send_q.push( msg );

  return 0;
}
예제 #3
0
	bool send(spmsg_t msg_) {
		send_queue.push(std::move(msg_));
		return true;
	}