GNOME Bugzilla – Bug 711755
private: Use threading primitives correctly in private test
Last modified: 2013-11-11 07:22:15 UTC
The glib/test/private test currently does unspeakable things with mutexes and privates :)
Created attachment 259367 [details] [review] private: Use threading primitives correctly in private test We shouldn't be clearing statically allocated mutexes, and also no auto-initialization of stack allocated GPrivate.
Comment on attachment 259367 [details] [review] private: Use threading primitives correctly in private test looks good except for the commit message: >We shouldn't be clearing statically allocated mutexes, and also >no auto-initialization of stack allocated GPrivate. there are no stack-allocated GPrivates here... >+ g_private_set (&private2, GINT_TO_POINTER(v)); while you're here, can you fix all the INT_TO_POINTER / POINTER_TO_INT calls to have a space before the open paren? (as a separate patch, doesn't need to be reviewed)
(In reply to comment #2) > there are no stack-allocated GPrivates here... Fixed commit message. > while you're here, can you fix all the INT_TO_POINTER / POINTER_TO_INT calls to > have a space before the open paren? (as a separate patch, doesn't need to be > reviewed) Done for all the lines I modified in the patch.
Attachment 259367 [details] pushed as e34d74b - private: Use threading primitives correctly in private test