Ignore:
Timestamp:
Jun 13, 2002, 4:11:39 PM (23 years ago)
Author:
sandervl
Message:

SetCustomMMapSemName added to override shared semaphore name used to synchronize global memory map list access (to avoid name clash with Odin)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/mmap.cpp

    r8456 r8659  
    1 /* $Id: mmap.cpp,v 1.56 2002-05-20 13:47:59 sandervl Exp $ */
     1/* $Id: mmap.cpp,v 1.57 2002-06-13 14:11:39 sandervl Exp $ */
    22
    33/*
     
    3434#include "oslibdos.h"
    3535#include <winimagepeldr.h>
     36#include <custombuild.h>
    3637
    3738#define DBG_LOCALLOG    DBG_mmap
     
    4546Win32MemMapView *Win32MemMapView::mapviews = NULL;
    4647
     48
     49static char *pszMMapSemName = NULL;
     50
     51//******************************************************************************
     52//******************************************************************************
     53void WIN32API SetCustomMMapSemName(LPSTR pszSemName)
     54{
     55    pszMMapSemName = pszSemName;
     56}
    4757//******************************************************************************
    4858//******************************************************************************
     
    5161    if(globalmapcritsect.hmtxLock == 0) {
    5262         dprintf(("InitializeMemMaps -> create shared critical section"));
    53          DosInitializeCriticalSection(&globalmapcritsect, MEMMAP_CRITSECTION_NAME);
     63         DosInitializeCriticalSection(&globalmapcritsect, (pszMMapSemName) ? pszMMapSemName : MEMMAP_CRITSECTION_NAME);
    5464    }
    5565    else {
Note: See TracChangeset for help on using the changeset viewer.