projects
/
projects
/
chimara
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use statically-allocated thread private data
[projects/chimara/chimara.git]
/
libchimara
/
glk.c
diff --git
a/libchimara/glk.c
b/libchimara/glk.c
index b86daed07971769f49f861c460f4ea8836b79258..f3ae9c1a61c0e2eec4c94ccdd9cecebc0589dca3 100644
(file)
--- a/
libchimara/glk.c
+++ b/
libchimara/glk.c
@@
-7,7
+7,7
@@
#include "gi_blorb.h"
#include "window.h"
#include "gi_blorb.h"
#include "window.h"
-G_GNUC_INTERNAL GPrivate
*glk_data_key = NULL
;
+G_GNUC_INTERNAL GPrivate
glk_data_key = G_PRIVATE_INIT(NULL)
;
/**
* glk_exit:
/**
* glk_exit:
@@
-43,7
+43,7
@@
G_GNUC_INTERNAL GPrivate *glk_data_key = NULL;
void
glk_exit(void)
{
void
glk_exit(void)
{
- ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key);
+ ChimaraGlkPrivate *glk_data = g_private_get(
&
glk_data_key);
shutdown_glk_pre();
shutdown_glk_pre();