glsl: protect glsl_type with a mutex
authorChia-I Wu <olvaffe@gmail.com>
Wed, 20 Aug 2014 06:40:29 +0000 (14:40 +0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 30 Oct 2014 09:26:19 +0000 (02:26 -0700)
commit2d64e4ffbab0426317f329e2bae22566dc80b98a
treefa74541ce0082e0842311a917327eeb06aa898ab
parenta6706163cb539fdb1f0432795d5c24b3e38f5cd7
glsl: protect glsl_type with a mutex

glsl_type has several static hash tables and a static ralloc context.  They
need to be protected by a mutex as they are not thread-safe.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=69200
Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glsl_types.cpp
src/glsl/glsl_types.h