set_clock


Description:

public virtual bool set_clock (Clock? clock)

Sets the clock for the element.

This function increases the refcount on the clock. Any previously set clock on the object is unreffed.

Parameters:

this

a Element to set the clock for.

clock

the Clock to set for the element.

Returns:

true if the element accepted the clock. An element can refuse a clock when it, for example, is not able to slave its internal clock to the clock or when it requires a specific clock to operate.

MT safe.