*Backed out changeset 3be01fb200a5
--HG-- branch : trunk
This commit is contained in:
@@ -1,43 +1,57 @@
|
||||
// $Id: IPC_SAP.cpp 80826 2008-03-04 14:51:23Z wotte $
|
||||
|
||||
#include "ace/IPC_SAP.h"
|
||||
|
||||
#include "ace/Log_Msg.h"
|
||||
#include "ace/OS_NS_unistd.h"
|
||||
#include "ace/os_include/os_signal.h"
|
||||
#include "ace/OS_NS_errno.h"
|
||||
#include "ace/OS_NS_fcntl.h"
|
||||
|
||||
#if !defined (__ACE_INLINE__)
|
||||
#include "ace/IPC_SAP.inl"
|
||||
#endif /* __ACE_INLINE__ */
|
||||
|
||||
ACE_RCSID(ace, IPC_SAP, "$Id: IPC_SAP.cpp 80826 2008-03-04 14:51:23Z wotte $")
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
ACE_ALLOC_HOOK_DEFINE(ACE_IPC_SAP)
|
||||
|
||||
void
|
||||
ACE_IPC_SAP::dump (void) const
|
||||
{
|
||||
#if defined (ACE_HAS_DUMP)
|
||||
ACE_TRACE ("ACE_IPC_SAP::dump");
|
||||
|
||||
ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
|
||||
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("handle_ = %d"), this->handle_));
|
||||
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\npid_ = %d"), this->pid_));
|
||||
ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
|
||||
#endif /* ACE_HAS_DUMP */
|
||||
}
|
||||
|
||||
// Cache for the process ID.
|
||||
pid_t ACE_IPC_SAP::pid_ = 0;
|
||||
|
||||
// This is the do-nothing constructor. It does not perform a
|
||||
// ACE_OS::socket system call.
|
||||
|
||||
ACE_IPC_SAP::ACE_IPC_SAP (void)
|
||||
: handle_ (ACE_INVALID_HANDLE)
|
||||
{
|
||||
// ACE_TRACE ("ACE_IPC_SAP::ACE_IPC_SAP");
|
||||
}
|
||||
|
||||
int
|
||||
ACE_IPC_SAP::enable (int value) const
|
||||
{
|
||||
ACE_TRACE ("ACE_IPC_SAP::enable");
|
||||
|
||||
// First-time in initialization.
|
||||
if (ACE_IPC_SAP::pid_ == 0)
|
||||
ACE_IPC_SAP::pid_ = ACE_OS::getpid ();
|
||||
|
||||
#if defined (ACE_WIN32) || defined (ACE_VXWORKS)
|
||||
switch (value)
|
||||
{
|
||||
@@ -101,12 +115,15 @@ ACE_IPC_SAP::enable (int value) const
|
||||
}
|
||||
return 0;
|
||||
#endif /* ! ACE_WIN32 && ! ACE_VXWORKS */
|
||||
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
int
|
||||
ACE_IPC_SAP::disable (int value) const
|
||||
{
|
||||
ACE_TRACE ("ACE_IPC_SAP::disable");
|
||||
|
||||
#if defined (ACE_WIN32) || defined (ACE_VXWORKS)
|
||||
switch (value)
|
||||
{
|
||||
@@ -172,5 +189,6 @@ ACE_IPC_SAP::disable (int value) const
|
||||
#endif /* ! ACE_WIN32 && ! ACE_VXWORKS */
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
ACE_END_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user