Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Interface «api::Synchronizable»

One program synchronization for executing in several processor units.

This interface provides a synchronization of one program which is being executed by several processor units.

public: virtual ~Synchronizable();

Destructor.

public: virtual bool isConstructed() const;

Tests if this object has been constructed.

Returns:
true if object has been constructed successfully.

public: virtual bool isEqual(void* ptr, int32 size, int32 channel);

Tests if given data equals the gauge.

Parameters:
ptr — address of data for synchronizing.
size — number of bytes for synchronizing.
channel — number of processor core which data is the gauge of synchronization.

Returns:
true if given data equals to the gauge.

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 recast(void* ptr, int32 size, int32 channel);

Recasts given data to a gauge.

The method compares given data with a gauge and recasts to it if the data does not equal to the gauge.

Parameters:
ptr — address of data for synchronizing.
size — number of bytes for synchronizing.
channel — number of processor core which data is the gauge of synchronization.

Returns:
true if given data was recast to the gauge.

public: virtual void synchronize();

Synchronizes an executing code section.

The method waits while other processor units get this program pointer and continues executing the program after this.

Back to class list