Ignore:
Timestamp:
Aug 29, 2000, 12:44:25 AM (25 years ago)
Author:
bird
Message:

New import (ptda_ptdasem).
Found and corrected problem with deadlock in myLDRQAppType. (Had to
take the intra-process semaphore (ptda_ptdasem) first.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GRACE/src/win32k/misc/OS2KPTDA.c

    r4025 r4108  
    1 /* $Id: OS2KPTDA.c,v 1.1.2.2 2000-08-17 08:23:35 bird Exp $
     1/* $Id: OS2KPTDA.c,v 1.1.2.3 2000-08-28 22:44:24 bird Exp $
    22 *
    33 * PTDA access functions.
     
    99 */
    1010
     11/*******************************************************************************
     12*   Defined Constants And Macros                                               *
     13*******************************************************************************/
     14#define INCL_OS2KRNL_SEM
     15#define INCL_OS2KRNL_PTDA
    1116
    1217/*******************************************************************************
     
    1419*******************************************************************************/
    1520#include <os2.h>
    16 #include <OS2KPTDA.h>
     21#include <OS2Krnl.h>
    1722
    1823
     
    2833extern ULONG    pptda_start;
    2934extern ULONG    pptda_environ;
     35extern ULONG    pptda_ptdasem;
    3036extern ULONG    pptda_module;
    3137
     
    5561
    5662
     63/**
     64 * Gets the ptda_ptdasem PTDA member. This member holds the intra-process semaphore which
     65 * for example is used to serialize _LDRQAppType.
     66 * @returns     Content of the pPTDA->ptda_ptdasem member.
     67 * @param       pPTDA   PTDA Pointer. (NULL is not allowed!)
     68 */
     69HKSEMMTX    ptda_ptda_ptdasem(PPTDA pPTDA)
     70{
     71    return (HKSEMMTX)(void*)(((char*)(void*)pPTDA) + (pptda_ptdasem - pptda_start));
     72}
    5773
    5874
Note: See TracChangeset for help on using the changeset viewer.