From c0f6b35a3a61d7db3bbff88e6509740819efee75 Mon Sep 17 00:00:00 2001 From: davidxu Date: Thu, 29 May 2008 07:57:33 +0000 Subject: - Reduce function call overhead for uncontended case. - Remove unused flags MUTEX_FLAGS_* and their code. - Check validity of the timeout parameter in mutex_self_lock(). --- lib/libthr/thread/thr_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libthr/thread/thr_init.c') diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c index edcef80..f96bba9 100644 --- a/lib/libthr/thread/thr_init.c +++ b/lib/libthr/thread/thr_init.c @@ -89,8 +89,7 @@ struct pthread_attr _pthread_attr_default = { struct pthread_mutex_attr _pthread_mutexattr_default = { .m_type = PTHREAD_MUTEX_DEFAULT, .m_protocol = PTHREAD_PRIO_NONE, - .m_ceiling = 0, - .m_flags = 0 + .m_ceiling = 0 }; /* Default condition variable attributes: */ -- cgit v1.1