IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31574


Ignore:
Timestamp:
May 26, 2011, 2:23:17 PM (15 years ago)
Author:
eugene
Message:

do not clear memblock locks for free until BLOCKSET call

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110505/psLib/src/sys/psMemory.c

    r31569 r31574  
    721721    // the global mutex is released, but the memBlock and its neighbors are protected
    722722    BLOCKSET_LOCK (memBlock, false);
     723    // MUTEX_LOCK(&memBlockListMutex);
    723724
    724725    psMemBlock *nextBlock = memBlock->nextBlock;
     
    766767
    767768    // all of the list modifications are done; set the lock and clear the per-memBlock locks
     769    // MUTEX_UNLOCK(&memBlockListMutex);
    768770    BLOCKSET_UNLOCK(memBlock, false);
    769771
     
    10291031    if (nextBlock != NULL) {
    10301032        nextBlock->previousBlock = previousBlock;
    1031         nextBlock->inFlight = false;
    10321033    }
    10331034    if (previousBlock != NULL) {
    10341035        previousBlock->nextBlock = nextBlock;
    1035         previousBlock->inFlight = false;
    10361036    }
    10371037    if (lastMemBlockAllocated == memBlock) {
    10381038        lastMemBlockAllocated = nextBlock;
    10391039    }
     1040
     1041    BLOCKSET_UNLOCK (memBlock, true);
    10401042
    10411043    // NULL out the refs so no one can get confused
    10421044    memBlock->nextBlock = NULL;
    10431045    memBlock->previousBlock = NULL;
    1044 
    1045     BLOCKSET_UNLOCK (memBlock, true);
    10461046
    10471047    // XXX these are slightly dangerous : someone else may grab the lock in the meanwhile...
Note: See TracChangeset for help on using the changeset viewer.