Changeset 3:e4ca2e057cec in xplcommon for src/xplcommon/posix/Waitable.cc


Ignore:
Timestamp:
12/27/12 13:01:22 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Reorganized the code a bit

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/xplcommon/posix/Waitable.cc

    r1 r3  
    3030//------------------------------------------------------------------------------
    3131
    32 #include "config.h"
    33 #ifdef HAVE_POLL_H
     32#include "Waitable.h"
     33
     34#include "Waiter.h"
    3435
    3536//------------------------------------------------------------------------------
    3637
    37 #include "POSIXWaitable.h"
    38 
    39 #include "POSIXWaiter.h"
     38using xplcommon::posix::Waitable;
    4039
    4140//------------------------------------------------------------------------------
    4241
    43 using xplcommon::POSIXWaitable;
    44 
    45 //------------------------------------------------------------------------------
    46 
    47 POSIXWaitable::POSIXWaitable(POSIXWaiter* waiter, int fd, short events) :
     42Waitable::Waitable(Waiter* waiter, int fd, short events) :
    4843    waiter(waiter),
    4944    fd(fd),
     
    5550//------------------------------------------------------------------------------
    5651
    57 POSIXWaitable::~POSIXWaitable()
     52Waitable::~Waitable()
    5853{
    5954    if (waiter!=0) waiter->remove(this);
     
    6156
    6257//------------------------------------------------------------------------------
    63 #endif // HAVE_POLL_H
    6458
    6559// Local Variables:
Note: See TracChangeset for help on using the changeset viewer.