Class

AgsThreadPool

Description

class Ags.ThreadPool : GObject.Object
{
  flags: volatile guint,
  max_unused_threads: volatile guint,
  max_threads: volatile guint,
  thread: GThread*,
  queued: volatile guint,
  creation_mutex: GMutex,
  creation_cond: GCond,
  create_threads: volatile gboolean,
  idle: volatile gboolean,
  idle_mutex: GMutex,
  idle_cond: GCond,
  parent: AgsThread*,
  returnable_thread: volatile GList*
}

No description available.

Ancestors

Constructors

ags_thread_pool_new

Create a new AgsThreadPool.

since: 3.0.0

Instance methods

ags_thread_pool_pull

Pull a previously instantiated AgsReturnableThread. Note this function may block until a new thread is available.

since: 3.0.0

ags_thread_pool_start

Start the thread pool.

since: 3.0.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Ags.ThreadPool:max-threads

The maximum amount of threads available.

since: 3.0.0

Ags.ThreadPool:max-unused-threads

The maximum amount of unused threads available.

since: 3.0.0

Signals

Ags.ThreadPool::start

The ::start() signal is invoked in order to started the pool.

since: 3.0.0

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct AgsThreadPoolClass {
  GObjectClass gobject;
  void (* start) (
    AgsThreadPool* thread_pool
  );
  
}

No description available.

Class members
gobject: GObjectClass

No description available.

start: void (* start) ( AgsThreadPool* thread_pool )

No description available.

Virtual methods

Ags.ThreadPoolClass.start

Start the thread pool.

since: 3.0.0