VirtualBox

忽略:
時間撮記:
2013-2-28 下午08:56:09 (12 年 以前)
作者:
vboxsync
訊息:

DevVGA: Drop the default crit sect in favour of our own (now called CritSect instead of lock). s -> pThis (didn't mean to combine these changes, but I started doing things in the wrong order and suddenly had no choice).

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r44528 r44876  
     1/* $Id$ */
    12/** @file
    23 * VirtualBox Video Acceleration (VBVA).
     
    45
    56/*
    6  * Copyright (C) 2006-2012 Oracle Corporation
     7 * Copyright (C) 2006-2013 Oracle Corporation
    78 *
    89 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1516 */
    1617
     18/*******************************************************************************
     19*   Header Files                                                               *
     20*******************************************************************************/
    1721#define LOG_GROUP LOG_GROUP_DEV_VGA
    1822#include <VBox/vmm/pdmifs.h>
     
    3741#define LOGVBVABUFFER(a) LogFlow(a)
    3842#else
    39 #define LOGVBVABUFFER(a) do {} while(0)
     43#define LOGVBVABUFFER(a) do {} while (0)
    4044#endif
    4145
     46/*******************************************************************************
     47*   Structures and Typedefs                                                    *
     48*******************************************************************************/
    4249typedef struct VBVAPARTIALRECORD
    4350{
     
    6976} VBVAMOUSESHAPEINFO;
    7077
    71 /* @todo saved state: save and restore VBVACONTEXT */
     78/** @todo saved state: save and restore VBVACONTEXT */
    7279typedef struct VBVACONTEXT
    7380{
     
    7784} VBVACONTEXT;
    7885
    79 /* Copies 'cb' bytes from the VBVA ring buffer to the 'pu8Dst'.
     86
     87
     88/** Copies @a cb bytes from the VBVA ring buffer to the @a pu8Dst.
    8089 * Used for partial records or for records which cross the ring boundary.
    8190 */
    8291static void vbvaFetchBytes (VBVABUFFER *pVBVA, uint8_t *pu8Dst, uint32_t cb)
    8392{
    84     /* @todo replace the 'if' with an assert. The caller must ensure this condition. */
     93    /** @todo replace the 'if' with an assert. The caller must ensure this condition. */
    8594    if (cb >= pVBVA->cbData)
    8695    {
     
    16331642{
    16341643    PPDMDEVINS pDevIns = pVGAState->pDevInsR3;
    1635     PDMCritSectEnter(&pVGAState->lock, VERR_SEM_BUSY);
     1644    PDMCritSectEnter(&pVGAState->CritSect, VERR_SEM_BUSY);
     1645
    16361646    HGSMISetHostGuestFlags(pVGAState->pHGSMI, HGSMIHOSTFLAGS_IRQ | fFlags);
    16371647    PDMDevHlpPCISetIrq(pDevIns, 0, PDM_IRQ_LEVEL_HIGH);
    1638     PDMCritSectLeave(&pVGAState->lock);
     1648
     1649    PDMCritSectLeave(&pVGAState->CritSect);
    16391650}
    16401651
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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