Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Class «system::Mutex»

Mutex class.

public: Mutex();

Constructor.

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.

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

Tests if given object has been constructed object.

public: virtual bool lock();

Locks this mutex.

Returns:
true if this mutex is locked successfully.

public: Object& operator =(const Object& obj);

Assignment operator.

Parameters:
obj — reference to source object.

Returns:
reference to this object.

public: void operator delete(void* ptr);

Operator delete.

Parameters:
ptr — address of allocated memory block or a null pointer.

public: void* operator new(size_t size);

Operator new.

Parameters:
size — number of bytes to allocate.

Returns:
allocated memory address or a null pointer.

public: void* operator new(size_t size, void* ptr);

Operator new.

Parameters:
size — unused.
ptr — pointer to reserved memory area

Returns:
given pointer.

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