Ignore:
Timestamp:
Apr 20, 2004, 12:11:44 PM (21 years ago)
Author:
sandervl
Message:

KSO: Update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/gen_object.h

    r5950 r10587  
    1 /* $Id: gen_object.h,v 1.7 2001-06-10 09:19:57 sandervl Exp $ */
     1/* $Id: gen_object.h,v 1.8 2004-04-20 10:11:42 sandervl Exp $ */
    22/*
    33 * Generic Object Class for OS/2
     
    1313#include <win32api.h>
    1414#endif
     15#include <VMutex.h>
    1516
    1617class GenericObject
    1718{
    1819public:
    19          GenericObject(GenericObject **head, CRITICAL_SECTION *pLock);
     20         GenericObject(GenericObject **head, VMutex *pLock);
    2021virtual ~GenericObject();
    2122
     
    2324GenericObject *GetNext()        { return next;  };
    2425
    25          void  lock()           { EnterCriticalSection(pLock); };
    26          void  unlock()         { LeaveCriticalSection(pLock); };
     26         void  lock()           { pLock->enter(); };
     27         void  unlock()         { pLock->leave(); };
    2728
    2829         void  link();
     
    3940         void  markDeleted()    { fDeletePending = TRUE; };
    4041
    41 static   void  lock(CRITICAL_SECTION *pLock)           { EnterCriticalSection(pLock); };
    42 static   void  unlock(CRITICAL_SECTION *pLock)         { LeaveCriticalSection(pLock); };
     42static   void  lock(VMutex *pLock)           { pLock->enter(); };
     43static   void  unlock(VMutex *pLock)         { pLock->leave(); };
    4344
    4445static   void  DestroyAll(GenericObject *head);
     
    6869protected:
    6970
    70          CRITICAL_SECTION *pLock;
     71         VMutex          *pLock;
    7172         LONG              refCount;
    7273         ULONG             fLinked        : 1,
     
    7475
    7576         GenericObject   **head;
    76          GenericObject    *next;         
     77         GenericObject    *next;       
    7778};
    7879
Note: See TracChangeset for help on using the changeset viewer.