IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32708 for trunk/psLib


Ignore:
Timestamp:
Nov 18, 2011, 12:42:42 PM (15 years ago)
Author:
eugene
Message:

use HARDLOCKS on psMemory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psMemory.c

    r32276 r32708  
    5656
    5757# define USE_SPINLOCK 0
    58 # define USE_HARDLOCK 0
     58# define USE_HARDLOCK 1
    5959
    6060# if (USE_SPINLOCK)
     
    337337/**** Unique ID for allocated blocks and associated accessor functions
    338338 */
    339 static psMemId memid = 0;
     339static volatile psMemId memid = 0;
    340340
    341341/* Return memory ID counter for next block to be allocated
     
    913913    // XXX move this elsewhere?
    914914    if (fd != NULL) {
     915# if (USE_HARDLOCK)
     916# else
    915917      fprintf (fd, "set %d locks, cleared %d locks, retry on %d locks (memID %ld)\n", setLock, clearLock, retryLock, memid);
     918# endif
    916919    }
    917920
Note: See TracChangeset for help on using the changeset viewer.