VirtualBox

Changeset 108789 in vbox for trunk/src


Ignore:
Timestamp:
Mar 28, 2025 7:55:43 PM (2 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168224
Message:

Additions: Linux/Wayland/VBoxClient: Introduce timeout when waiting for clipboard/dnd data over IPC, bugref:10796.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/wayland-helper.h

    r106786 r108789  
    294294                uint64_t tsStart = RTTimeMilliTS();
    295295
    296                 while(   (RTTimeMilliTS() - tsStart) < m_TimeoutMs
     296                while(   (m_TimeoutMs == RT_INDEFINITE_WAIT ? 1 : (RTTimeMilliTS() - tsStart) < m_TimeoutMs)
    297297                      && (ASMAtomicReadU64(&m_Value)) == m_Default)
    298298                {
     
    311311            {
    312312                return m_Default;
     313            }
     314
     315            /**
     316             * Get data waiting timeout as was specified during initialization.
     317             */
     318            uint64_t timeout()
     319            {
     320                return m_TimeoutMs;
    313321            }
    314322
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette