[10874] Update ACE to v5.8.3

(based on zergtmn's repo commit 3a8c259)
(based on zergtmn's repo commit 946c1a8)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
zerg 2010-12-14 17:14:34 +03:00 committed by VladimirMangos
parent c38c876b1d
commit b8d773091a
343 changed files with 3060 additions and 7431 deletions

View file

@ -1,4 +1,4 @@
// $Id: Pipe.cpp 91286 2010-08-05 09:04:31Z johnnyw $
// $Id: Pipe.cpp 92010 2010-09-24 14:54:19Z shuston $
#include "ace/Pipe.h"
#include "ace/SOCK_Acceptor.h"
@ -254,23 +254,22 @@ ACE_Pipe::close (void)
{
ACE_TRACE ("ACE_Pipe::close");
int result = 0;
// Note that the following will work even if we aren't closing down
// sockets because <ACE_OS::closesocket> will just call <::close> in
// that case!
if (this->handles_[0] != ACE_INVALID_HANDLE)
result = ACE_OS::closesocket (this->handles_[0]);
this->handles_[0] = ACE_INVALID_HANDLE;
if (this->handles_[1] != ACE_INVALID_HANDLE)
result |= ACE_OS::closesocket (this->handles_[1]);
this->handles_[1] = ACE_INVALID_HANDLE;
int result = this->close_read ();
result |= this->close_write ();
return result;
}
int
ACE_Pipe::close_read (void)
{
return this->close_handle (0);
}
int ACE_Pipe::close_write (void)
{
return this->close_handle (1);
}
// Send N char *ptrs and int lengths. Note that the char *'s precede
// the ints (basically, an varargs version of writev). The count N is
// the *total* number of trailing arguments, *not* a couple of the