VirtualBox

Changeset 11020 in vbox for trunk/src/VBox/Runtime/r3/win


Ignore:
Timestamp:
Jul 30, 2008 10:48:35 PM (16 years ago)
Author:
vboxsync
Message:

iprt: Added a RT_NO_THROW macro for wrapping up the throw() stuff, applying it to mem.h and rand.h to try make RTMemAutoPtr work as efficiently as the pure C version of the stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/alloc-win.cpp

    r8245 r11020  
    5454 * @param   cb      Size in bytes of the memory block to allocate.
    5555 */
    56 RTDECL(void *) RTMemExecAlloc(size_t cb)
     56RTDECL(void *) RTMemExecAlloc(size_t cb) RT_NO_THROW
    5757{
    5858    /*
     
    9292 * @param   pv      Pointer to memory block.
    9393 */
    94 RTDECL(void)    RTMemExecFree(void *pv)
     94RTDECL(void)    RTMemExecFree(void *pv) RT_NO_THROW
    9595{
    9696    if (pv)
     
    106106 * @param   cb  Size of the memory block. Will be rounded up to page size.
    107107 */
    108 RTDECL(void *) RTMemPageAlloc(size_t cb)
     108RTDECL(void *) RTMemPageAlloc(size_t cb) RT_NO_THROW
    109109{
    110110#ifdef USE_VIRTUAL_ALLOC
     
    125125 * @param   cb  Size of the memory block. Will be rounded up to page size.
    126126 */
    127 RTDECL(void *) RTMemPageAllocZ(size_t cb)
     127RTDECL(void *) RTMemPageAllocZ(size_t cb) RT_NO_THROW
    128128{
    129129#ifdef USE_VIRTUAL_ALLOC
     
    148148 *                  NULL will be ignored.
    149149 */
    150 RTDECL(void) RTMemPageFree(void *pv)
     150RTDECL(void) RTMemPageFree(void *pv) RT_NO_THROW
    151151{
    152152    if (pv)
     
    170170 * @param   fProtect    The new protection, a combination of the RTMEM_PROT_* defines.
    171171 */
    172 RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect)
     172RTDECL(int) RTMemProtect(void *pv, size_t cb, unsigned fProtect) RT_NO_THROW
    173173{
    174174    /*
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