Re: Question about GStaticRWLock and GStaticMutex

2007-06-10 Thread Tomasz Jankowski
Ok, I read API reference again i I found answer on second question - "All of the g_static_rw_lock_* functions can be used even if g_thread_init() has not been called.". However it isn't fully clear for me. I'm working on library, which use GStaticRWLock in it's structures. I want to provide library

Question about GStaticRWLock and GStaticMutex

2007-06-10 Thread Tomasz Jankowski
Hello! I don't understand the difference between initializing GStaticMutex with G_STATIC_MUTEX_INIT and g_static_mutex_init (). Can someone explain it for me? Also, as I read n GLib's API reference GstaticMutex are defined only if program is designed to support multi thread, am i right? If it's t