Ignore:
Timestamp:
Jul 31, 2006, 5:21:38 AM (19 years ago)
Author:
bird
Message:

bedtime

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/synergy/lib/platform/CPMEventQueueBuffer.cpp

    r2752 r2755  
    33 * Copyright (C) 2004 Chris Schoeneman
    44 * Copyright (C) 2006 Knut St. Osmundsen
    5  * 
     5 *
    66 * This package is free software; you can redistribute it and/or
    77 * modify it under the terms of the GNU General Public License
    88 * found in the file COPYING that should have accompanied this file.
    9  * 
     9 *
    1010 * This package is distributed in the hope that it will be useful,
    1111 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     
    5959CPMEventQueueBuffer::waitForEvent(double timeout)
    6060{
    61         // check if messages are available first. 
     61        // check if messages are available first.
    6262    ULONG fStatus = WinQueryQueueStatus(HWND_DESKTOP);
    6363    if (!fStatus) {
    6464        // convert timeout and wait.
    65         ULONG ulPMTimeout = timeout < 0.0 
     65        ULONG ulPMTimeout = timeout < 0.0
    6666                          ? SEM_INDEFINITE_WAIT
    6767                          : (ULONG)(1000.0 * timeout);
     
    8585                return kSystem;
    8686        }
    87        
     87
    8888    if (m_event.msg == m_userEvent) {
    8989                dataID = (UInt32)(uintptr_t)m_event.mp1;
    9090                return kUser;
    9191        }
    92    
     92
    9393    event = CEvent(CEvent::kSystem, IEventQueue::getSystemTarget(), &m_event);
    9494    return kSystem;
     
    105105{
    106106    ULONG fStatus = WinQueryQueueStatus(HWND_DESKTOP);
    107         return fStatus != 0; 
     107        return fStatus != 0;
    108108}
    109109
     
    120120}
    121121
     122/*
     123 * Local Variables:
     124 *  mode: c
     125 *  c-file-style: "k&r"
     126 *  c-basic-offset: 4
     127 *  tab-width: 4
     128 *  indent-tabs-mode: t
     129 * End:
     130 */
     131
Note: See TracChangeset for help on using the changeset viewer.