mesa: protect the debug state with a mutex
authorChia-I Wu <olvaffe@gmail.com>
Wed, 20 Aug 2014 06:40:31 +0000 (14:40 +0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 30 Oct 2014 09:26:19 +0000 (02:26 -0700)
commit4ded2ef5e84f4696b4e5ed5bd6ad1efe933bbc39
tree1aada9de57e30981f1542a75ac3a70101e2e2573
parent2d64e4ffbab0426317f329e2bae22566dc80b98a
mesa: protect the debug state with a mutex

We are about to change mesa to spawn threads for deferred glCompileShader and
glLinkProgram, and we need to make sure those threads can send compiler
warnings/errors to the debug output safely.

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/mesa/main/errors.c
src/mesa/main/mtypes.h