GThread posix: switch to Windows ABI
authorRyan Lortie <desrt@desrt.ca>
Mon, 3 Oct 2011 00:43:28 +0000 (20:43 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 3 Oct 2011 02:33:10 +0000 (22:33 -0400)
commite081eadda598bc708fbf9dd53a190fc3b0e7fa76
tree486ffd17ac66f459e6c72150fcebd69a5258c550
parent151756631dcac8e74df37c02bf0cf13d9df2e18b
GThread posix: switch to Windows ABI

Modify the POSIX implementation of the synchronisation primatives to use
the same ABI as Windows: one pointer for each type.

This frees us from having to #include <pthread.h> and avoids the problem
with pthread_rwlock_t not being defined under certain compiler defines.

A few more changes are expected to the ABI -- they will be committed
separately.

https://bugzilla.gnome.org/show_bug.cgi?id=659866
glib/gthread-posix.c
glib/gthread.h