Mutex


Object Hierarchy:

Object hierarchy for Mutex

Description:

public class Mutex : Object

Mutex wrapper with utility methods.

This class wraps GLib.Mutex and provides a safer withLock() helper to avoid unlock leaks when exceptions or early returns happen.

Example:

    var mutex = new Mutex ();
mutex.withLock (() => {
// critical section
});


Namespace: Vala.Concurrent
Package: Valacore

Content:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object