Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jan 2004 07:00:57 -0800 (PST)
From:      Mike Makonnen <mtm@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libthr/thread thr_mutex.c
Message-ID:  <200401191500.i0JF0vl7040951@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
mtm         2004/01/19 07:00:57 PST

  FreeBSD src repository

  Modified files:
    lib/libthr/thread    thr_mutex.c 
  Log:
  Refactor _pthread_mutex_init
          o Simplify the logic by removing a lot of unnecesary nesting
          o Reduce the amount of local variables
          o Zero-out the allocated structure and get rid of
            all the unnecessary setting to 0 and NULL;
  
  Refactor _pthread_mutex_destroy
          o Simplify the logic by removing a lot of unnecesary nesting
          o No need to check pointer that the mutex attributes points
            to. Checking passed in pointer is enough.
  
  Revision  Changes    Path
  1.21      +68 -129   src/lib/libthr/thread/thr_mutex.c



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