aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/libgamma-error.c.gpp
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-13 09:47:47 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-13 09:47:47 +0200
commit8dd3b8aaa54a0c3a2661df4f8f629a3b5085d37b (patch)
treee349d0c2a56d74bd37fa7a3c55159fcbd1de6f2f /src/lib/libgamma-error.c.gpp
parentlibgamma_crtc_set_gamma_ramps8 is not hot (diff)
downloadlibgamma-8dd3b8aaa54a0c3a2661df4f8f629a3b5085d37b.tar.gz
libgamma-8dd3b8aaa54a0c3a2661df4f8f629a3b5085d37b.tar.bz2
libgamma-8dd3b8aaa54a0c3a2661df4f8f629a3b5085d37b.tar.xz
group gid and group name, in libgamma-error, are thread local
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/lib/libgamma-error.c.gpp')
-rw-r--r--src/lib/libgamma-error.c.gpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libgamma-error.c.gpp b/src/lib/libgamma-error.c.gpp
index 717f11b..1cc81ac 100644
--- a/src/lib/libgamma-error.c.gpp
+++ b/src/lib/libgamma-error.c.gpp
@@ -38,7 +38,7 @@ $>export PATH=".:${PATH}"
* `LIBGAMMA_DEVICE_REQUIRE_GROUP` is returned.
*/
#ifndef __WIN32__
-gid_t libgamma_group_gid = 0;
+__thread gid_t libgamma_group_gid = 0;
#else
short libgamma_group_gid = 0;
#endif
@@ -49,7 +49,11 @@ short libgamma_group_gid = 0;
* `NULL` if the name of the group `libgamma_group_gid`
* cannot be determined.
*/
+#ifndef __WIN32__
+__thread const char* libgamma_group_name = NULL;
+#else
const char* libgamma_group_name = NULL;
+#endif