src/libYARP_OS/src/Port.cpp
void Port::Share(Sendable *nsendable)
{
	okay_to_send.Wait();
	out_mutex.Wait();
	p_sendable.Set(nsendable);
	out_mutex.Post();

	/// this simply pulses the mutex on the sender thread.
	/// cost an additional thread but hopefully saves a costly message
	/// through the port socket.
	tsender.pulseGo ();
}
///
/// this is called from YARPPort::Write to actually send something.
/// Currently it wakes the Port thread up through a socket connection that
///	Paul believes to be responsible for poor performance on Linux/NT.
///
this is called from YARPPort::Write to actually send something.
Currently it wakes the Port thread up through a socket connection that
Paul believes to be responsible for poor performance on Linux/NT.
this is called from YARPPort :: Write to actually send something . Currently it wakes the Port thread up through a socket connection that Paul believes to be responsible for poor performance on Linux / NT .
void Port::Share(Sendable *nsendable)
{
	okay_to_send.Wait();
	out_mutex.Wait();
	p_sendable.Set(nsendable);
	out_mutex.Post();
	tsender.pulseGo ();
}
void Port :: Share ( Sendable * nsendable ) { okay_to_send . Wait ( ) ; out_mutex . Wait ( ) ; p_sendable . Set ( nsendable ) ; out_mutex . Post ( ) ; tsender . pulseGo ( ) ; }
this is called from YARPPort::Write to actually send something.
this is called from YARPPort :: Write to actually send something .
/// this simply pulses the mutex on the sender thread. /// cost an additional thread but hopefully saves a costly message /// through the port socket.