瀏覽代碼

fix namespace violation in dependencies of mtx_lock

commit 2de29bc994029b903a366b8a4a9f8c3c3ee2be90 left behind one
reference to pthread_mutex_trylock. fixing this also improves code
generation due to the namespace-safe version being hidde.
Rich Felker 6 年之前
父節點
當前提交
c62dfe6161
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/thread/pthread_mutex_timedlock.c

+ 1 - 1
src/thread/pthread_mutex_timedlock.c

@@ -9,7 +9,7 @@ int __pthread_mutex_timedlock(pthread_mutex_t *restrict m, const struct timespec
 	int type = m->_m_type;
 	int r, t, priv = (type & 128) ^ 128;
 
-	r = pthread_mutex_trylock(m);
+	r = __pthread_mutex_trylock(m);
 	if (r != EBUSY) return r;
 	
 	int spins = 100;