VirtualBox

Ignore:
Timestamp:
Nov 15, 2012 2:49:23 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
82091
Message:

Extended RTOnce with termination cleanups. (Changes existing structures and functions.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/rtmempage-exec-mmap-heap-posix.cpp

    r40307 r43879  
    606606 *
    607607 * @returns IPRT status code
    608  * @param   pvUser1             Unused.
    609  * @param   pvUser2             Unused.
    610  */
    611 static DECLCALLBACK(int) rtMemPagePosixInitOnce(void *pvUser1, void *pvUser2)
    612 {
    613     NOREF(pvUser1); NOREF(pvUser2);
     608 * @param   pvUser              Unused.
     609 */
     610static DECLCALLBACK(int) rtMemPagePosixInitOnce(void *pvUser)
     611{
     612    NOREF(pvUser);
    614613    int rc = RTHeapPageInit(&g_MemPagePosixHeap, false /*fExec*/);
    615614    if (RT_SUCCESS(rc))
     
    664663    else
    665664    {
    666         int rc = RTOnce(&g_MemPagePosixInitOnce, rtMemPagePosixInitOnce, NULL, NULL);
     665        int rc = RTOnce(&g_MemPagePosixInitOnce, rtMemPagePosixInitOnce, NULL);
    667666        if (RT_SUCCESS(rc))
    668667            rc = RTHeapPageAlloc(pHeap, cb >> PAGE_SHIFT, pszTag, fZero, &pv);
Note: See TracChangeset for help on using the changeset viewer.

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