From owner-svn-soc-all@FreeBSD.ORG Tue Jun 26 17:05:12 2012 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from socsvn.FreeBSD.org (unknown [IPv6:2001:4f8:fff6::2f]) by hub.freebsd.org (Postfix) with SMTP id A158C1065675 for ; Tue, 26 Jun 2012 17:05:11 +0000 (UTC) (envelope-from gmiller@FreeBSD.org) Received: by socsvn.FreeBSD.org (sSMTP sendmail emulation); Tue, 26 Jun 2012 17:05:11 +0000 Date: Tue, 26 Jun 2012 17:05:11 +0000 From: gmiller@FreeBSD.org To: svn-soc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <20120626170511.A158C1065675@hub.freebsd.org> Cc: Subject: socsvn commit: r238342 - in soc2012/gmiller/locking-head: . lib/libwitness X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2012 17:05:12 -0000 Author: gmiller Date: Tue Jun 26 17:05:11 2012 New Revision: 238342 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=238342 Log: r238091@FreeBSD-dev: root | 2012-06-19 04:15:46 -0500 Add a wrapper for pthread_mutex_lock() to test the wrapper implementation approach. Modified: soc2012/gmiller/locking-head/ (props changed) soc2012/gmiller/locking-head/lib/libwitness/wrappers.c Modified: soc2012/gmiller/locking-head/lib/libwitness/wrappers.c ============================================================================== --- soc2012/gmiller/locking-head/lib/libwitness/wrappers.c Tue Jun 26 16:45:18 2012 (r238341) +++ soc2012/gmiller/locking-head/lib/libwitness/wrappers.c Tue Jun 26 17:05:11 2012 (r238342) @@ -1 +1,10 @@ +#include + +int _pthread_mutex_lock(pthread_mutex_t *mutex); + +int +pthread_mutex_lock(pthread_mutex_t *mutex) +{ + return _pthread_mutex_lock(mutex); +}