[pypy-commit] pypy default: Add comment

arigo noreply at buildbot.pypy.org
Sat Jun 28 01:35:29 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r72257:00bee81d1159
Date: 2014-06-28 01:35 +0200
http://bitbucket.org/pypy/pypy/changeset/00bee81d1159/

Log:	Add comment

diff --git a/rpython/translator/c/src/thread_pthread.c b/rpython/translator/c/src/thread_pthread.c
--- a/rpython/translator/c/src/thread_pthread.c
+++ b/rpython/translator/c/src/thread_pthread.c
@@ -510,6 +510,10 @@
 /************************************************************/
 #if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0
 /************************************************************/
+/* NB. the test above should cover two features: clock_gettime() and
+   pthread_mutex_timedlock().  It's unclear that there is a measurable
+   benefit in using pthread_mutex_timedlock(), but there is certainly
+   one in using clock_gettime(). */
 
 #define mutex2_t      mutex1_t
 #define mutex2_init   mutex1_init


More information about the pypy-commit mailing list