Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Sep 2006 08:39:00 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/share/examples/mdoc example.9
Message-ID:  <200609270839.k8R8d0qO053842@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
pjd         2006-09-27 08:39:00 UTC

  FreeBSD src repository

  Modified files:
    share/examples/mdoc  example.9 
  Log:
  - Use existing functions mtx_lock() and mtx_unlock().
  - Change variable name to 'error', as this is what is mostly used for
    functions that return an error.
  - Add mutex(9) to the SEE ALSO section.
  - Bump the date.
  
  I don't really like the example code. I'd prefer symmetry where possible, eg.
  
          mtx_lock(&example_lock);
          error = example(NULL, EXAMPLE_ONE);
          mtx_unlock(&example_lock);
          if (error != 0)
                  return (error);
  
  But I'll leave it as it is for now.
  
  Reviewed by:    simon
  
  Revision  Changes    Path
  1.4       +9 -8      src/share/examples/mdoc/example.9



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