c11/threads: Assert that mtx is non-NULL and check return values.
authorMatt Turner <mattst88@gmail.com>
Mon, 29 Jun 2015 17:25:41 +0000 (10:25 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 25 Sep 2015 21:08:31 +0000 (14:08 -0700)
commitc8dc04d4c00ed45bfe5f7acb34b0d2f6ab8b7f8d
tree32512ac0cbec4a63ddc7dcc6d0adfb84254c79d2
parent266d05a3a0651ac954c91aea12c870940e8a9820
c11/threads: Assert that mtx is non-NULL and check return values.

Passing NULL to C11 threads functions isn't safe, so there's no need for
our implementation to handle it. Cuts about 1k of .text.

   text     data      bss      dec      hex  filename
5009514   198440    26328  5234282   4fde6a  i965_dri.so before
5008346   198440    26328  5233114   4fd9da  i965_dri.so after

Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Brian Paul <brianp@vmware.com>
include/c11/threads_posix.h