Ignore:
Timestamp:
Jun 23, 2001, 6:59:28 PM (24 years ago)
Author:
sandervl
Message:

semaphore updates

File:
1 edited

Legend:

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

    r6069 r6084  
    1 /* $Id: hmmutex.cpp,v 1.6 2001-06-22 19:40:28 sandervl Exp $ */
     1/* $Id: hmmutex.cpp,v 1.7 2001-06-23 16:59:28 sandervl Exp $ */
    22
    33/*
     
    4747#include "HandleManager.H"
    4848#include "HMMutex.h"
     49#include "HMSemaphore.h"
    4950
    5051#define DBG_LOCALLOG    DBG_hmmutex
     
    9697      strcat(szSemName, lpszMutexName);
    9798      lpszMutexName = szSemName;
     99      FixSemName((char *)lpszMutexName);
    98100  }
    99101  rc = DosCreateMutexSem(lpszMutexName, &htmx, 0, fInitialOwner);
     
    165167  strcpy(szSemName, "\\SEM32\\");
    166168  strcat(szSemName, lpszMutexName);
     169  FixSemName(szSemName);
    167170  rc = DosOpenMutexSem(szSemName, &hmtx);
    168171  if(rc) {
     
    376379                                                    DWORD      dwWakeMask)
    377380{
    378     dprintf(("KERNEL32: ERROR: HandleManager::DeviceHandler::MsgWaitForMultipleObjects %08x %d %x %d %d %x",
    379               pHMHandleData->hHMHandle, nCount, pHandles, fWaitAll, dwMilliseconds, dwWakeMask));
    380 
    381     if(!(pHMHandleData->dwAccess & SYNCHRONIZE_W) )
    382     {
    383         dprintf(("ERROR: Access denied!!"));
    384         SetLastError(ERROR_ACCESS_DENIED_W);
    385         return WAIT_FAILED_W;
    386     }
    387     return WAIT_FAILED_W;
     381    return HMSemMsgWaitForMultipleObjects(nCount, pHandles, fWaitAll, dwMilliseconds, dwWakeMask);
    388382}
    389383#endif
     
    406400                                                 DWORD   dwTimeout)
    407401{
    408     dprintf(("KERNEL32: ERROR: HandleManager::DeviceHandler::WaitForMultipleObjects %08x %d %x %d %x",
    409               pHMHandleData->hHMHandle, cObjects, lphObjects, fWaitAll, dwTimeout));
    410 
    411     if(!(pHMHandleData->dwAccess & SYNCHRONIZE_W) )
    412     {
    413         dprintf(("ERROR: Access denied!!"));
    414         SetLastError(ERROR_ACCESS_DENIED_W);
    415         return WAIT_FAILED_W;
    416     }
    417     return WAIT_FAILED_W;
     402    return HMSemWaitForMultipleObjects(cObjects, lphObjects, fWaitAll, dwTimeout);
    418403}
    419404#endif
Note: See TracChangeset for help on using the changeset viewer.