VirtualBox

Changeset 36807 in vbox


Ignore:
Timestamp:
Apr 21, 2011 10:42:00 PM (14 years ago)
Author:
vboxsync
Message:

Additions/x11/seamless: we can no longer throw exceptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/thread.cpp

    r33595 r36807  
    1717
    1818#include <VBox/log.h>
    19 #include <iostream>   /* For std::exception */
    2019
    2120#include "thread.h"
     
    9897    PSELF pSelf = reinterpret_cast<PSELF>(pvUser);
    9998    pSelf->mRunning = true;
    100     try
    101     {
    102         rc = pSelf->mFunction->threadFunction(pSelf);
    103     }
    104     catch (const std::exception &e)
    105     {
    106         LogRelFunc(("Caught exception in thread: %s\n", e.what()));
    107         rc = VERR_UNRESOLVED_ERROR;
    108     }
    109     catch (...)
    110     {
    111         LogRelFunc(("Caught unknown exception in thread.\n"));
    112         rc = VERR_UNRESOLVED_ERROR;
    113     }
     99    rc = pSelf->mFunction->threadFunction(pSelf);
    114100    pSelf->mRunning = false;
    115101    LogRelFlowFunc(("returning %Rrc\n", rc));
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