set_active


Description:

public bool set_active (bool active)

Controls the active state of this.

When the pool is inactive, new calls to acquire_buffer will return with FLUSHING.

Activating the bufferpool will preallocate all resources in the pool based on the configuration of the pool.

Deactivating will free the resources again when there are no outstanding buffers. When there are outstanding buffers, they will be freed as soon as they are all returned to the pool.

Parameters:

this

a BufferPool

active

the new active state

Returns:

false when the pool was not configured or when preallocation of the buffers failed.




2022 vala-language.org