VirtualBox

Ignore:
Timestamp:
Mar 14, 2008 6:12:27 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28887
Message:

Additions/x11: added flow logging statements to the VBoxClient code

File:
1 edited

Legend:

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

    r6897 r7449  
    1616 */
    1717
     18#include <VBox/log.h>
    1819#include <iostream>   /* For std::exception */
    1920
     
    2526    int rc = VINF_SUCCESS;
    2627
     28    LogFlowThisFunc(("\n"));
    2729    if (NIL_RTTHREAD == mSelf)  /* Assertion */
    2830    {
     
    4446        }
    4547    }
     48    LogFlowThisFunc(("returning %Rrc\n", rc));
    4649    return rc;
    4750}
     
    5053VBoxGuestThread::~VBoxGuestThread(void)
    5154{
     55    LogFlowThisFunc(("\n"));
    5256    if (NIL_RTTHREAD != mSelf)
    5357    {
     
    5963        catch(...) {}
    6064    }
     65    LogFlowThisFunc(("returning\n"));
    6166}
    6267
     
    6469int VBoxGuestThread::start(void)
    6570{
     71    int rc = VINF_SUCCESS;
     72
     73    LogFlowThisFunc(("returning\n"));
    6674    if (NIL_RTTHREAD != mSelf)  /* Assertion */
    6775    {
     
    7078    }
    7179    mExit = false;
    72     return RTThreadCreate(&mSelf, threadFunction, reinterpret_cast<void *>(this),
     80    rc = RTThreadCreate(&mSelf, threadFunction, reinterpret_cast<void *>(this),
    7381                          mStack, mType, mFlags, mName);
     82    LogFlowThisFunc(("returning %Rrc\n", rc));
     83    return rc;
    7484}
    7585
     
    8494{
    8595    int rc = VINF_SUCCESS;
     96
     97    LogFlowFunc(("\n"));
    8698    PSELF pSelf = reinterpret_cast<PSELF>(pvUser);
    8799    pSelf->mRunning = true;
     
    101113    }
    102114    pSelf->mRunning = false;
     115    LogFlowFunc(("returning %Rrc\n", rc));
    103116    return rc;
    104117}
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