VirtualBox

Changeset 10788 in vbox for trunk/include


Ignore:
Timestamp:
Jul 21, 2008 4:44:33 PM (17 years ago)
Author:
vboxsync
Message:

IPRT: Implemented the context variant of the handle table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/handletable.h

    r10768 r10788  
    9898 * If not specfied the caller will have to take care of that. */
    9999#define RTHANDLETABLE_FLAGS_LOCKED      RT_BIT_32(1)
     100/** The mask of valid flags. */
     101#define RTHANDLETABLE_FLAGS_MASK        UINT32_C(0x00000003)
    100102/* @} */
    101103
     
    116118 *                          first handle to be returned.
    117119 * @param   cMax            The max number of handles. When exceeded the RTHandleTableAlloc
    118  *                          or RTHandleTableAllocWithCtx calls will fail.
     120 *                          or RTHandleTableAllocWithCtx calls will fail. Note that this
     121 *                          number will be rounded up to a multiple of the sub-table size,
     122 *                          or if it's too close to UINT32_MAX it will be rounded down.
    119123 * @param   pfnRetain       Optional retain callback that will be called from behind the
    120124 *                          lock (if any) during lookup.
     
    127131 * A simplified version of the RTHandleTableCreateEx API.
    128132 *
    129  * It assumes a max of 65534 handles with 1 being the base. The table
    130  * serialized (RTHANDLETABLE_FLAGS_LOCKED).
     133 * It assumes a max of about 64K handles with 1 being the base. The table
     134 * access will serialized (RTHANDLETABLE_FLAGS_LOCKED).
    131135 *
    132136 * @returns IPRT status code and *phHandleTable.
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