VirtualBox

忽略:
時間撮記:
2008-7-30 下午10:47:04 (16 年 以前)
作者:
vboxsync
訊息:

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.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/r3/alloc.cpp

    r8245 r11019  
    5454 * @param   cb      Size in bytes of the memory block to allocate.
    5555 */
    56 RTDECL(void *)  RTMemTmpAlloc(size_t cb)
     56RTDECL(void *)  RTMemTmpAlloc(size_t cb) RT_NO_THROW
    5757{
    5858    return RTMemAlloc(cb);
     
    6969 * @param   cb      Size in bytes of the memory block to allocate.
    7070 */
    71 RTDECL(void *)  RTMemTmpAllocZ(size_t cb)
     71RTDECL(void *)  RTMemTmpAllocZ(size_t cb) RT_NO_THROW
    7272{
    7373    return RTMemAllocZ(cb);
     
    8080 * @param   pv      Pointer to memory block.
    8181 */
    82 RTDECL(void)    RTMemTmpFree(void *pv)
     82RTDECL(void)    RTMemTmpFree(void *pv) RT_NO_THROW
    8383{
    8484    RTMemFree(pv);
     
    9393 * @param   cb      Size in bytes of the memory block to allocate.
    9494 */
    95 RTDECL(void *)  RTMemAlloc(size_t cb)
     95RTDECL(void *)  RTMemAlloc(size_t cb) RT_NO_THROW
    9696{
    9797#ifdef RTALLOC_USE_EFENCE
     
    126126 * @param   cb      Size in bytes of the memory block to allocate.
    127127 */
    128 RTDECL(void *)  RTMemAllocZ(size_t cb)
     128RTDECL(void *)  RTMemAllocZ(size_t cb) RT_NO_THROW
    129129{
    130130#ifdef RTALLOC_USE_EFENCE
     
    157157 * @param   cbNew   The new block size (in bytes).
    158158 */
    159 RTDECL(void *)  RTMemRealloc(void *pvOld, size_t cbNew)
     159RTDECL(void *)  RTMemRealloc(void *pvOld, size_t cbNew) RT_NO_THROW
    160160{
    161161#ifdef RTALLOC_USE_EFENCE
     
    183183 * @param   pv      Pointer to memory block.
    184184 */
    185 RTDECL(void)    RTMemFree(void *pv)
     185RTDECL(void)    RTMemFree(void *pv) RT_NO_THROW
    186186{
    187187    if (pv)
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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