Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Interface «api::Mutex»

Mutex semaphore interface.

public: virtual ~Mutex();

Destructor.

public: virtual bool isBlocked();

Tests if this resource is blocked.

Returns:
true if this resource is blocked.

public: virtual bool isConstructed() const;

Tests if this object has been constructed.

Returns:
true if object has been constructed successfully.

public: static bool isObject(const Type* obj);

Tests if given object has been constructed object.

Parameters:
obj — pointer to object.

Returns:
true if object has been constructed successfully.

public: virtual bool lock();

Locks this mutex.

Returns:
true if this mutex is locked successfully.

public: virtual void unlock();

Unlocks this mutex.

public: Type unlock(Type value);

Unlocks this mutex.

Parameters:
value — a value which will be returned.

Returns:
given argument value.

Back to class list