Changeset 31574
- Timestamp:
- May 26, 2011, 2:23:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110505/psLib/src/sys/psMemory.c
r31569 r31574 721 721 // the global mutex is released, but the memBlock and its neighbors are protected 722 722 BLOCKSET_LOCK (memBlock, false); 723 // MUTEX_LOCK(&memBlockListMutex); 723 724 724 725 psMemBlock *nextBlock = memBlock->nextBlock; … … 766 767 767 768 // all of the list modifications are done; set the lock and clear the per-memBlock locks 769 // MUTEX_UNLOCK(&memBlockListMutex); 768 770 BLOCKSET_UNLOCK(memBlock, false); 769 771 … … 1029 1031 if (nextBlock != NULL) { 1030 1032 nextBlock->previousBlock = previousBlock; 1031 nextBlock->inFlight = false;1032 1033 } 1033 1034 if (previousBlock != NULL) { 1034 1035 previousBlock->nextBlock = nextBlock; 1035 previousBlock->inFlight = false;1036 1036 } 1037 1037 if (lastMemBlockAllocated == memBlock) { 1038 1038 lastMemBlockAllocated = nextBlock; 1039 1039 } 1040 1041 BLOCKSET_UNLOCK (memBlock, true); 1040 1042 1041 1043 // NULL out the refs so no one can get confused 1042 1044 memBlock->nextBlock = NULL; 1043 1045 memBlock->previousBlock = NULL; 1044 1045 BLOCKSET_UNLOCK (memBlock, true);1046 1046 1047 1047 // XXX these are slightly dangerous : someone else may grab the lock in the meanwhile...
Note:
See TracChangeset
for help on using the changeset viewer.
