Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jun 1998 16:13:12 -0700 (PDT)
From:      John Birrell <jb@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG
Subject:   cvs commit: src/lib/libc_r/uthread uthread_spinlock.c
Message-ID:  <199806092313.QAA02445@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jb          1998/06/09 16:13:11 PDT

  Modified files:
    lib/libc_r/uthread   uthread_spinlock.c 
  Log:
  Add support for compile time debug. This is enabled if libc_r is built
  with -D_LOCK_DEBUG. This adds the file name and line number to each lock
  call and these are stored in the spinlock structure. When using debug
  mode, the lock function will check if the thread is trying to lock
  something it has already locked. This is not supposed to happen because
  the lock will be freed too early.
  
  Without lock debug, libc_r should be smaller and slightly faster.
  
  Revision  Changes    Path
  1.4       +52 -20    src/lib/libc_r/uthread/uthread_spinlock.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806092313.QAA02445>