cvs commit: src/lib/libthr/thread thr_mutex.c

Mike Makonnen mtm at FreeBSD.org
Mon Jan 19 07:00:59 PST 2004


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


More information about the cvs-all mailing list