VirtualBox

Changeset 39500 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Dec 1, 2011 8:26:48 PM (13 years ago)
Author:
vboxsync
Message:

RTReq: More refactoring.

Location:
trunk/src/VBox/Runtime/include/internal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/magics.h

    r37396 r39500  
    111111/** RTRANDINT::u32Magic. (Alan Moore) */
    112112#define RTRANDINT_MAGIC                 UINT32_C(0x19531118)
     113/** The value of RTREQ::u32Magic. */
     114#define RTREQ_MAGIC                     UINT32_C(0xfeed0001) /**< @todo find a value */
     115/** The value of RTREQ::u32Magic of a freed request. */
     116#define RTREQ_MAGIC_DEAD                (~RTREQ_MAGIC)
     117/** The value of RTREQPOOLINT::u32Magic. */
     118#define RTREQPOOL_MAGIC                 UINT32_C(0xfeed0002)/**< @todo find a value */
     119/** The value of RTREQPOOLINT::u32Magic after destruction. */
     120#define RTREQPOOL_MAGIC_DEAD           (~RTREQPOOL_MAGIC)
     121/** The value of RTREQQUEUEINT::u32Magic. */
     122#define RTREQQUEUE_MAGIC                UINT32_C(0xfeed0003)/**< @todo find a value */
     123/** The value of RTREQQUEUEINT::u32Magic after destruction. */
     124#define RTREQQUEUE_MAGIC_DEAD           (~RTREQQUEUE_MAGIC)
    113125/** The value of RTS3::u32Magic. (Edgar Wallace) */
    114126#define RTS3_MAGIC                      UINT32_C(0x18750401)
  • trunk/src/VBox/Runtime/include/internal/req.h

    r39499 r39500  
    3737typedef struct RTREQQUEUEINT
    3838{
    39     /** @todo magic  */
     39    /** Magic value (RTREQQUEUE_MAGIC). */
     40    uint32_t                u32Magic;
     41    /** Set if busy (pending or processing requests). */
     42    bool volatile           fBusy;
    4043    /** Head of the request queue. Atomic. */
    4144    volatile PRTREQ         pReqs;
     
    5053     */
    5154    RTSEMEVENT              EventSem;
    52     /** Set if busy (pending or processing requests). */
    53     bool volatile           fBusy;
    5455} RTREQQUEUEINT;
    5556
     
    5859
    5960
     61
     62DECLHIDDEN(int) rtReqProcessOne(PRTREQ pReq);
     63
    6064RT_C_DECLS_END
    6165
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