Changeset 10587 for trunk/src/user32/gen_object.h
- Timestamp:
- Apr 20, 2004, 12:11:44 PM (21 years ago)
- 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:57sandervl Exp $ */1 /* $Id: gen_object.h,v 1.8 2004-04-20 10:11:42 sandervl Exp $ */ 2 2 /* 3 3 * Generic Object Class for OS/2 … … 13 13 #include <win32api.h> 14 14 #endif 15 #include <VMutex.h> 15 16 16 17 class GenericObject 17 18 { 18 19 public: 19 GenericObject(GenericObject **head, CRITICAL_SECTION*pLock);20 GenericObject(GenericObject **head, VMutex *pLock); 20 21 virtual ~GenericObject(); 21 22 … … 23 24 GenericObject *GetNext() { return next; }; 24 25 25 void lock() { EnterCriticalSection(pLock); };26 void unlock() { LeaveCriticalSection(pLock); };26 void lock() { pLock->enter(); }; 27 void unlock() { pLock->leave(); }; 27 28 28 29 void link(); … … 39 40 void markDeleted() { fDeletePending = TRUE; }; 40 41 41 static void lock( CRITICAL_SECTION *pLock) { EnterCriticalSection(pLock); };42 static void unlock( CRITICAL_SECTION *pLock) { LeaveCriticalSection(pLock); };42 static void lock(VMutex *pLock) { pLock->enter(); }; 43 static void unlock(VMutex *pLock) { pLock->leave(); }; 43 44 44 45 static void DestroyAll(GenericObject *head); … … 68 69 protected: 69 70 70 CRITICAL_SECTION*pLock;71 VMutex *pLock; 71 72 LONG refCount; 72 73 ULONG fLinked : 1, … … 74 75 75 76 GenericObject **head; 76 GenericObject *next; 77 GenericObject *next; 77 78 }; 78 79
Note:
See TracChangeset
for help on using the changeset viewer.