Changeset 6841 for branches/splittup/src/win32k/misc/PerTaskW32kData.c
- Timestamp:
- Sep 27, 2001, 5:08:35 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/splittup/src/win32k/misc/PerTaskW32kData.c
r6296 r6841 1 /* $Id: PerTaskW32kData.c,v 1.2 2001-07-10 16:39:19bird Exp $1 /* $Id: PerTaskW32kData.c,v 1.2.2.1 2001-09-27 03:08:30 bird Exp $ 2 2 * 3 3 * Per Task (Win32k) Data. … … 18 18 #define INCL_OS2KRNL_TK /* OS2KRNL: Task Stuff */ 19 19 #define INCL_OS2KRNL_PTDA 20 #define INCL_KKL_AVL 21 #define INCL_KKL_LOG 22 #define INCL_KKL_HEAP 20 23 21 24 /******************************************************************************* … … 23 26 *******************************************************************************/ 24 27 #include <os2.h> 28 #include <OS2Krnl.h> 29 #include <kKrnlLib.h> 25 30 26 31 #include "devSegDf.h" /* Win32k segment definitions. */ 27 32 #include "dev32.h" 28 33 #include "dev32hlp.h" 29 #include "log.h"30 #include "OS2Krnl.h"31 34 #include <string.h> 32 #include "macros.h"33 #include "avl.h"34 35 #include "PerTaskW32kData.h" 35 #include "rmalloc.h"36 36 37 37 … … 39 39 * Global Variables * 40 40 *******************************************************************************/ 41 /*static*/ PAVL NODECORE pPTDTree;/* Pointer to PTD tree */41 /*static*/ PAVLPVNODECORE pPTDTree; /* Pointer to PTD tree */ 42 42 /* Currently assumed protected by ldrSem. */ 43 43 … … 65 65 if (pPTDA == 0) 66 66 pPTDA = ptdaGetCur(); 67 pptd = (PPTD)(void*)AVL Get(&pPTDTree, (AVLKEY)pPTDA);67 pptd = (PPTD)(void*)AVLPVGet(&pPTDTree, pPTDA); 68 68 if (!pptd && fCreate) 69 69 { … … 75 75 } 76 76 memset(pptd, 0, sizeof(*pptd)); 77 pptd->core.Key = (AVLKEY)pPTDA;78 AVL Insert(&pPTDTree, &pptd->core);77 pptd->core.Key = pPTDA; 78 AVLPVInsert(&pPTDTree, &pptd->core); 79 79 } 80 80 return pptd; … … 93 93 if (pPTDA == 0) 94 94 pPTDA = ptdaGetCur(); 95 pptd = (PPTD)(void*)AVL Remove(&pPTDTree, (AVLKEY)pPTDA);95 pptd = (PPTD)(void*)AVLPVRemove(&pPTDTree, pPTDA); 96 96 if (pptd) 97 97 {
Note:
See TracChangeset
for help on using the changeset viewer.
