mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Replace boost::bind with BIND_TYPE where appropriate
This commit is contained in:
@@ -255,9 +255,13 @@ void PeerImp::setIpPort (const std::string& strIP, int iPort)
|
||||
|
||||
void PeerImp::detach (const char* rsn, bool onIOStrand)
|
||||
{
|
||||
// VFALCO NOTE So essentially, detach() is really two different functions
|
||||
// depending on the value of onIOStrand.
|
||||
// TODO Clean this up.
|
||||
//
|
||||
if (!onIOStrand)
|
||||
{
|
||||
mIOStrand.post (boost::bind (&Peer::detach, shared_from_this (), rsn, true));
|
||||
mIOStrand.post (BIND_TYPE (&Peer::detach, shared_from_this (), rsn, true));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -521,7 +525,7 @@ void PeerImp::sendPacket (const PackedMessage::pointer& packet, bool onStrand)
|
||||
{
|
||||
if (!onStrand)
|
||||
{
|
||||
mIOStrand.post (boost::bind (&Peer::sendPacket, shared_from_this (), packet, true));
|
||||
mIOStrand.post (BIND_TYPE (&Peer::sendPacket, shared_from_this (), packet, true));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user