Changeset 25:fe70f0063cae in xplcommon


Ignore:
Timestamp:
01/02/13 07:47:31 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 2 'hg:/home/ivaradi/xplane/hg/xplcommon' '/'>, 'public')
Message:

Moved releaseHandle to Overlappable

Location:
src/xplcommon/win32
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/xplcommon/win32/LocalAcceptor.h

    r24 r25  
    133133    if (!accepted) return 0;
    134134
    135     LocalSocket* s = new LocalSocket(waiter, getServerSocket().releaseHandle(),
     135    LocalSocket* s = new LocalSocket(waiter, overlappable.releaseHandle(),
    136136                                     readingCapacity, writingCapacity);
    137137    accepted = false;
     
    144144                                             size_t writingCapacity)
    145145{
    146     return getSocket(getServerSocket().waiter,
     146    return getSocket(overlappable.getWaiter(),
    147147                     readingCapacity, writingCapacity);
    148148}
  • src/xplcommon/win32/LocalServerSocketBase.cc

    r22 r25  
    6969//------------------------------------------------------------------------------
    7070
    71 HANDLE LocalServerSocketBase::releaseHandle()
    72 {
    73     HANDLE h = handle;
    74     handle = 0;
    75     return h;
    76 }
    77 
    78 //------------------------------------------------------------------------------
    79 
    8071// Local Variables:
    8172// mode: C++
  • src/xplcommon/win32/LocalServerSocketBase.h

    r22 r25  
    7676    bool connectNamedPipe(Overlapped* overlapped);
    7777
    78     /**
    79      * Get the handle and clear it.
    80      */
    81     HANDLE releaseHandle();
    82 
    8378    friend class LocalAcceptor;
    8479};
  • src/xplcommon/win32/Overlappable.h

    r21 r25  
    8686    bool hasWaiter() const;
    8787
     88    /**
     89     * Get the handle and clear it.
     90     */
     91    HANDLE releaseHandle();
     92
    8893    friend class Completer;
    8994};
     
    122127//------------------------------------------------------------------------------
    123128
     129inline HANDLE Overlappable::releaseHandle()
     130{
     131    HANDLE h = handle;
     132    handle = 0;
     133    return h;
     134}
     135
     136//------------------------------------------------------------------------------
     137
    124138} /* namespace xplcommon::win32 */ } /* namespace xplcommon */
    125139
Note: See TracChangeset for help on using the changeset viewer.