This is a first shot for a cross platform thread library for glib.

it is currently only implemented for posix threads, but should be
portable to win32 and other platforms, that support threads.

The whole thing is kind of similar to the NSPR API of netscapes cross
platform library, but has a simpler interface, that should satisfy
almost all needs. Also there are some functions, that are more nifty
than in NSPR, especially the g_monitor_new_for_resource function,
which is a much better version of the cached monitors in NSPR (its
faster and uses the same API as usual monitors).

The whole thing is not very big (the stripped version of the lib is
only about 20k on solaris).

Also see the testgthread program, which implements the well known
dining philosopers problem. It illustrates the use of the lib quite well.


