VirtualBox

Changeset 95182 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Jun 3, 2022 11:35:39 AM (3 years ago)
Author:
vboxsync
Message:

Main/glue: Updated NativeEventQueue::processEventQueue with more details on darwin and Ctrl-C. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/NativeEventQueue.cpp

    r93115 r95182  
    498498 *          out of bounds.  On darwin it will also be returned if the queue is
    499499 *          stopped.
     500 *
     501 * @note    On darwin this function will not return when the thread receives a signal,
     502 *          it will just resume the wait.
    500503 */
    501504int NativeEventQueue::processEventQueue(RTMSINTERVAL cMsTimeout)
     
    519522    {
    520523# ifdef RT_OS_DARWIN
    521         /** @todo check how Ctrl-C works on Darwin. */
     524        /** @todo check how Ctrl-C works on Darwin.
     525         * Update: It doesn't work. MACH_RCV_INTERRUPT could perhaps be returned
     526         *         to __CFRunLoopServiceMachPort, but neither it nor __CFRunLoopRun
     527         *         has any way of expressing it via their return values.  So, if
     528         *         Ctrl-C handling is important, signal needs to be handled on
     529         *         a different thread or something. */
    522530        rc = waitForEventsOnDarwin(cMsTimeout);
    523531# else // !RT_OS_DARWIN
Note: See TracChangeset for help on using the changeset viewer.

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