commit | 6ce11e7e2c6be033e0d712fc39359de7b955c2bf | [log] [tgz] |
---|---|---|
author | Emil Velikov <emil.velikov@collabora.com> | Sun Apr 24 16:14:04 2016 +0100 |
committer | Emil Velikov <emil.l.velikov@gmail.com> | Mon May 23 12:07:45 2016 +0100 |
tree | 8cd3b4f1488a6f9f80fc74e37f0f7d798ddbb56e | |
parent | 4424bf5da4f9cd18bb30fc14d1d8403e4ec6caff [diff] |
c11/threads: create mutexattrs only when needed If the mutexattrs are the default one can just pass NULL to pthread_mutex_init. As the compiler does not know this detail it unnecessarily creates/destroys the attrs. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>