VirtualBox

Changeset 12324 in vbox for trunk/include


Ignore:
Timestamp:
Sep 10, 2008 5:18:38 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
36345
Message:

PDMThread: New API PDMR3ThreadSleep. Fixed a per thread event sem leak.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pdmthread.h

    r8155 r12324  
    3535#ifdef IN_RING3
    3636# include <iprt/thread.h>
    37 #endif 
     37#endif
    3838
    3939__BEGIN_DECLS
     
    286286/**
    287287 * Creates a PDM thread for internal use in the VM.
    288  * 
    289  * @returns VBox status code.
    290  * @param   pVM         The VM handle. 
     288 *
     289 * @returns VBox status code.
     290 * @param   pVM         The VM handle.
    291291 * @param   ppThread    Where to store the thread 'handle'.
    292292 * @param   pvUser      The user argument to the thread function.
     
    303303/**
    304304 * Creates a PDM thread for VM use by some external party.
    305  * 
    306  * @returns VBox status code.
    307  * @param   pVM         The VM handle. 
     305 *
     306 * @returns VBox status code.
     307 * @param   pVM         The VM handle.
    308308 * @param   ppThread    Where to store the thread 'handle'.
    309309 * @param   pvUser      The user argument to the thread function.
     
    360360
    361361/**
     362 * Called by the PDM thread instead of RTThreadSleep.
     363 *
     364 * The difference is that the sleep will be interrupted on state change. The
     365 * thread must be in the running state, otherwise it will return immediately.
     366 *
     367 * @returns VBox status code.
     368 * @retval  VINF_SUCCESS on success or state change.
     369 * @retval  VERR_INTERRUPTED on signal or APC.
     370 *
     371 * @param   pThread     The PDM thread.
     372 * @param   cMillies    The number of milliseconds to sleep.
     373 */
     374PDMR3DECL(int) PDMR3ThreadSleep(PPDMTHREAD pThread, unsigned cMillies);
     375
     376/**
    362377 * Suspends the thread.
    363378 *
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