gtkc.gthreadtypes.GStaticMutex Struct Reference


Detailed Description

A GStaticMutex works like a GMutex, but it has one significant advantage.

It doesn't need to be created at run-time like a GMutex, but can be defined at compile-time. Here is a shorter, easier and safer version of our give_me_next_number() example: Example6.Using GStaticMutex to simplify thread-safe programming


SourceForge.net Logo DSource.org Logo digitalmars.com Logo