Make the implementation of GPrivate behave more closely as in POSIX
authorTor Lillqvist <tml@novell.com>
Mon, 20 Feb 2006 02:47:30 +0000 (02:47 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Mon, 20 Feb 2006 02:47:30 +0000 (02:47 +0000)
commitb4168ad3b298700302ffbba29ba0c83a2aba62b5
treeae6ada1aaf69d6c4f223a898be8bc9ea990e4f74
parentdde67f284da164ffe889ed0438f3d6457eda90f2
Make the implementation of GPrivate behave more closely as in POSIX

2006-02-20  Tor Lillqvist  <tml@novell.com>

* gthread-win32.c (g_thread_exit_win32_impl): Make the
implementation of GPrivate behave more closely as in POSIX
threads: The value associacted with a GPrivate must be set to NULL
before calling the destructor. (The destructor gets the original
value as argument.)  A destructor might re-associate a non-NULL
value with some GPrivate. To deal with this, if after all
destructors have been called, there still are some non-NULL
values, the process is repeated. (#331367)
gthread/ChangeLog
gthread/gthread-win32.c