Changeset 25732 in vbox for trunk/include/VBox
- Timestamp:
- Jan 11, 2010 4:23:26 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56476
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdmcritsect.h
r25368 r25732 55 55 } PDMCRITSECT; 56 56 57 VMMR3DECL(int) PDMR3CritSectInit(PVM pVM, PPDMCRITSECT pCritSect, const char *pszName);57 VMMR3DECL(int) PDMR3CritSectInit(PVM pVM, PPDMCRITSECT pCritSect, RT_SRC_POS_DECL, const char *pszNameFmt, ...); 58 58 VMMDECL(int) PDMCritSectEnter(PPDMCRITSECT pCritSect, int rcBusy); 59 59 VMMDECL(int) PDMCritSectEnterDebug(PPDMCRITSECT pCritSect, int rcBusy, RTHCUINTPTR uId, RT_SRC_POS_DECL); -
trunk/include/VBox/pdmdev.h
r24744 r25732 2360 2360 * @param pDevIns Device instance. 2361 2361 * @param pCritSect Pointer to the critical section. 2362 * @param pszName The name of the critical section (for 2363 * statistics). 2364 */ 2365 DECLR3CALLBACKMEMBER(int, pfnCritSectInit,(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect, const char *pszName)); 2362 * @param RT_SRC_POS_DECL Use RT_SRC_POS. 2363 * @param pszNameFmt Format string for namging the critical section. 2364 * For statistics and lock validation. 2365 * @param va Arguments for the format string. 2366 */ 2367 DECLR3CALLBACKMEMBER(int, pfnCritSectInit,(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect, RT_SRC_POS_DECL, 2368 const char *pszNameFmt, va_list va)); 2366 2369 2367 2370 /** … … 3702 3705 3703 3706 /** 3704 * @copydoc PDMDEVHLPR3::pfnCritSectInit 3705 */ 3706 DECLINLINE(int) PDMDevHlpCritSectInit(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect, const char *pszName) 3707 { 3708 return pDevIns->pDevHlpR3->pfnCritSectInit(pDevIns, pCritSect, pszName); 3707 * Initializes a PDM critical section. 3708 * 3709 * The PDM critical sections are derived from the IPRT critical sections, but 3710 * works in GC as well. 3711 * 3712 * @returns VBox status code. 3713 * @param pDevIns Device instance. 3714 * @param pCritSect Pointer to the critical section. 3715 * @param RT_SRC_POS_DECL Use RT_SRC_POS. 3716 * @param pszNameFmt Format string for namging the critical section. 3717 * For statistics and lock validation. 3718 * @param ... Arguments for the format string. 3719 */ 3720 DECLINLINE(int) PDMDevHlpCritSectInit(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect, RT_SRC_POS_DECL, const char *pszNameFmt, ...) 3721 { 3722 va_list va; 3723 va_start(va, pszNameFmt); 3724 int rc = pDevIns->pDevHlpR3->pfnCritSectInit(pDevIns, pCritSect, RT_SRC_POS_ARGS, pszNameFmt, va); 3725 va_end(va); 3726 return rc; 3709 3727 } 3710 3728
Note:
See TracChangeset
for help on using the changeset viewer.