socsvn commit: r238342 - in soc2012/gmiller/locking-head: . lib/libwitness

gmiller at FreeBSD.org gmiller at FreeBSD.org
Tue Jun 26 17:05:12 UTC 2012


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 at 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 <pthread.h>
+
+int	_pthread_mutex_lock(pthread_mutex_t *mutex);
+
+int
+pthread_mutex_lock(pthread_mutex_t *mutex)
+{
+  return _pthread_mutex_lock(mutex);
+}


More information about the svn-soc-all mailing list