Changeset 8952


Ignore:
Timestamp:
Aug 1, 2002, 6:02:41 PM (23 years ago)
Author:
sandervl
Message:

Create event semaphore during TEB setup. Used for Post(Thread)Message in combination with MsgWaitForMultipleObjects

Location:
trunk/src/kernel32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/kernel32/HandleManager.cpp

    r8880 r8952  
    1 /* $Id: HandleManager.cpp,v 1.89 2002-07-15 14:40:15 sandervl Exp $ */
     1/* $Id: HandleManager.cpp,v 1.90 2002-08-01 16:02:40 sandervl Exp $ */
    22
    33/*
     
    29462946  {
    29472947    dprintf(("ERROR: HMWaitForMultipleObjects: alloca failed to allocate %d handles", cObjects));
    2948     O32_SetLastError(ERROR_NOT_ENOUGH_MEMORY);
     2948    SetLastError(ERROR_NOT_ENOUGH_MEMORY);
    29492949    return WAIT_FAILED;
    29502950  }
     
    29772977
    29782978    *pLoop2 = *pLoop1;
    2979 ////      O32_SetLastError(ERROR_INVALID_HANDLE);
     2979////      SetLastError(ERROR_INVALID_HANDLE);
    29802980////      return (WAIT_FAILED);
    29812981    }
     
    30813081  {
    30823082      dprintf(("ERROR: HMMsgWaitForMultipleObjects: alloca failed to allocate %d handles", cObjects));
    3083       O32_SetLastError(ERROR_NOT_ENOUGH_MEMORY);
     3083      SetLastError(ERROR_NOT_ENOUGH_MEMORY);
    30843084      return WAIT_FAILED;
    30853085  }
     
    31073107
    31083108    *pLoop2 = *pLoop1;
    3109 ////      O32_SetLastError(ERROR_INVALID_HANDLE);
     3109////      SetLastError(ERROR_INVALID_HANDLE);
    31103110////      return (WAIT_FAILED);
    31113111    }
  • TabularUnified trunk/src/kernel32/wprocess.cpp

    r8921 r8952  
    1 /* $Id: wprocess.cpp,v 1.157 2002-07-26 10:47:59 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.158 2002-08-01 16:02:41 sandervl Exp $ */
    22
    33/*
     
    192192    winteb->o.odin.hThread  = hThread;
    193193    winteb->o.odin.threadId = dwThreadId;
     194
     195    // Event semaphore (auto-reset) to signal message post to MsgWaitForMultipleObjects
     196    winteb->o.odin.hPostMsgEvent = CreateEventA(NULL, FALSE, FALSE, NULL);
    194197
    195198    return winteb;
     
    377380    // free allocated memory for security structures
    378381    free( winteb->o.odin.threadinfo.pTokenGroups );
     382
     383    // free PostMessage event semaphore
     384    if(winteb->o.odin.hPostMsgEvent) {
     385        CloseHandle(winteb->o.odin.hPostMsgEvent);
     386    }
    379387
    380388#ifdef DEBUG
Note: See TracChangeset for help on using the changeset viewer.