OS_NS_poll.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // OS_NS_poll.inl,v 1.4 2005/10/28 16:14:54 ossama Exp
00004 
00005 #include "ace/Time_Value.h"
00006 #include "ace/OS_NS_errno.h"
00007 
00008 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00009 
00010 ACE_INLINE int
00011 ACE_OS::poll (struct pollfd *pollfds,
00012               unsigned long len,
00013               const ACE_Time_Value *timeout)
00014 {
00015   ACE_OS_TRACE ("ACE_OS::poll");
00016 #if defined (ACE_HAS_POLL)
00017   int to = timeout == 0 ? -1 : int (timeout->msec ());
00018   ACE_OSCALL_RETURN (::poll (pollfds, len, to), int, -1);
00019 #else
00020   ACE_UNUSED_ARG (timeout);
00021   ACE_UNUSED_ARG (len);
00022   ACE_UNUSED_ARG (pollfds);
00023 
00024   ACE_NOTSUP_RETURN (-1);
00025 #endif /* ACE_HAS_POLL */
00026 }
00027 
00028 ACE_INLINE int
00029 ACE_OS::poll (struct pollfd *pollfds,
00030               unsigned long len,
00031               const ACE_Time_Value &timeout)
00032 {
00033   ACE_OS_TRACE ("ACE_OS::poll");
00034 #if defined (ACE_HAS_POLL)
00035   ACE_OSCALL_RETURN (::poll (pollfds, len, int (timeout.msec ())), int, -1);
00036 #else
00037   ACE_UNUSED_ARG (timeout);
00038   ACE_UNUSED_ARG (len);
00039   ACE_UNUSED_ARG (pollfds);
00040 
00041   ACE_NOTSUP_RETURN (-1);
00042 #endif /* ACE_HAS_POLL */
00043 }
00044 
00045 ACE_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 09:41:57 2006 for ACE by doxygen 1.3.6