VirtualBox

Changeset 78561 in vbox for trunk/include/iprt


Ignore:
Timestamp:
May 17, 2019 11:15:02 AM (6 years ago)
Author:
vboxsync
Message:

Runtime/RTShMem,tstRTShMem: Add API to delete a named shared memory object on POSIX hosts and make use of it in the testcase to cleanup any leftovers from previous runs

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r78337 r78561  
    19871987# define RTSha512t256Update                             RT_MANGLER(RTSha512t256Update)
    19881988# define RTShMemClose                                   RT_MANGLER(RTShMemClose)
     1989# define RTShMemDelete                                  RT_MANGLER(RTShMemDelete)
    19891990# define RTShMemMapRegion                               RT_MANGLER(RTShMemMapRegion)
    19901991# define RTShMemOpen                                    RT_MANGLER(RTShMemOpen)
  • trunk/include/iprt/shmem.h

    r76585 r78561  
    8787
    8888/**
     89 * Tries to delete a shared memory object with the given name.
     90 *
     91 * @returns IPRT status code.
     92 * @retval  VERR_NOT_SUPPORTED if the platform does not support deleting the shared memory object by name.
     93 * @param   pszName         Name of the shared memory object to delete.
     94 */
     95RTDECL(int) RTShMemDelete(const char *pszName);
     96
     97/**
    8998 * Returns the number of references (i.e. mappings) held for the given shared memory object.
    9099 *
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