Use override/default for RTPortableServer
[ACE_TAO.git] / ACE / ace / FIFO_Recv_Msg.cpp
blob03e96c169037f4e8f12cc72b3375a7abb78240a2
1 #include "ace/FIFO_Recv_Msg.h"
3 #include "ace/Log_Category.h"
4 #if defined (ACE_HAS_ALLOC_HOOKS)
5 # include "ace/Malloc_Base.h"
6 #endif /* ACE_HAS_ALLOC_HOOKS */
8 #if !defined (__ACE_INLINE__)
9 #include "ace/FIFO_Recv_Msg.inl"
10 #endif /* __ACE_INLINE__ */
12 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
14 ACE_ALLOC_HOOK_DEFINE(ACE_FIFO_Recv_Msg)
16 void
17 ACE_FIFO_Recv_Msg::dump () const
19 #if defined (ACE_HAS_DUMP)
20 ACE_TRACE ("ACE_FIFO_Recv_Msg::dump");
21 ACE_FIFO_Recv::dump ();
22 #endif /* ACE_HAS_DUMP */
25 // Note that persistent means "open FIFO for writing, as well as
26 // reading." This ensures that the FIFO never gets EOF, even if there
27 // aren't any writers at the moment!
29 int
30 ACE_FIFO_Recv_Msg::open (const ACE_TCHAR *fifo_name,
31 int flags,
32 mode_t perms,
33 int persistent,
34 LPSECURITY_ATTRIBUTES sa)
36 ACE_TRACE ("ACE_FIFO_Recv_Msg::open");
38 return ACE_FIFO_Recv::open (fifo_name,
39 flags,
40 perms,
41 persistent,
42 sa);
45 ACE_FIFO_Recv_Msg::ACE_FIFO_Recv_Msg ()
47 ACE_TRACE ("ACE_FIFO_Recv_Msg::ACE_FIFO_Recv_Msg");
50 ACE_FIFO_Recv_Msg::ACE_FIFO_Recv_Msg (const ACE_TCHAR *fifo_name,
51 int flags,
52 mode_t perms,
53 int persistent,
54 LPSECURITY_ATTRIBUTES sa)
56 ACE_TRACE ("ACE_FIFO_Recv_Msg::ACE_FIFO_Recv_Msg");
58 if (this->ACE_FIFO_Recv_Msg::open (fifo_name,
59 flags,
60 perms,
61 persistent,
62 sa) == -1)
63 ACELIB_ERROR ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("ACE_FIFO_Recv_Msg")));
66 ACE_END_VERSIONED_NAMESPACE_DECL