diff options
author | davidxu <davidxu@FreeBSD.org> | 2008-05-29 07:57:33 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2008-05-29 07:57:33 +0000 |
commit | c0f6b35a3a61d7db3bbff88e6509740819efee75 (patch) | |
tree | a58be2d79c9e47b30162c6c3b4617b4bf05fdecd /lib/libthr/thread/thr_init.c | |
parent | c74da9cd447d88e1a2defdd577d01b2fe43e0981 (diff) | |
download | FreeBSD-src-c0f6b35a3a61d7db3bbff88e6509740819efee75.zip FreeBSD-src-c0f6b35a3a61d7db3bbff88e6509740819efee75.tar.gz |
- 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().
Diffstat (limited to 'lib/libthr/thread/thr_init.c')
-rw-r--r-- | lib/libthr/thread/thr_init.c | 3 |
1 files changed, 1 insertions, 2 deletions
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: */ |