AgsConditionManager

AgsConditionManager — condition manager

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── AgsConditionManager

Implemented Interfaces

AgsConditionManager implements AgsConnectable.

Includes

#include <ags/thread/ags_condition_manager.h>

Description

The AgsConditionManager keeps your condition in a hash table where you can lookup your conditions.

Functions

ags_condition_manager_insert ()

gboolean
ags_condition_manager_insert (AgsConditionManager *condition_manager,
                              GObject *lock_object,
                              pthread_cond_t *cond);

Inserts a condition into hash map associated with lock_object .

Parameters

condition_manager

the AgsConditionManager

 

lock_object

the object as key

 

cond

the condition to insert

 

Returns

TRUE on success, otherwise FALSE

Since: 1.0.0.8


ags_condition_manager_remove ()

gboolean
ags_condition_manager_remove (AgsConditionManager *condition_manager,
                              GObject *lock_object);

Removes a lock associated with lock_object.3

Parameters

condition_manager

the AgsConditionManager

 

lock_object

the object to remove

 

Returns

TRUE as successfully removed, otherwise FALSE

Since: 1.0.0.8


ags_condition_manager_lookup ()

pthread_cond_t *
ags_condition_manager_lookup (AgsConditionManager *condition_manager,
                              GObject *lock_object);

Lookup a condition associated with lock_object in condition_manager

Parameters

condition_manager

the AgsConditionManager

 

lock_object

the object to lookup

 

Returns

the condition on success, else NULL

Since: 1.0.0.8


ags_condition_manager_get_instance ()

AgsConditionManager *
ags_condition_manager_get_instance ();

Singleton function to optain the condition manager instance.

Returns

an instance of AgsConditionManager

Since: 1.0.0.8


ags_condition_manager_new ()

AgsConditionManager *
ags_condition_manager_new ();

Instantiate a condition manager.

Returns

a new AgsConditionManager

Since: 1.0.0.8


AGS_CONDITION_MANAGER()

#define AGS_CONDITION_MANAGER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CONDITION_MANAGER, AgsConditionManager))

AGS_CONDITION_MANAGER_CLASS()

#define AGS_CONDITION_MANAGER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_CONDITION_MANAGER, AgsConditionManagerClass))

AGS_CONDITION_MANAGER_GET_CLASS()

#define AGS_CONDITION_MANAGER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_CONDITION_MANAGER, AgsConditionManagerClass))

AGS_IS_CONDITION_MANAGER()

#define AGS_IS_CONDITION_MANAGER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_CONDITION_MANAGER))

ags_condition_manager_get_type ()

GType
ags_condition_manager_get_type ();

Types and Values

AGS_TYPE_CONDITION_MANAGER

#define AGS_TYPE_CONDITION_MANAGER                (ags_condition_manager_get_type())

struct AgsConditionManager

struct AgsConditionManager;

struct AgsConditionManagerClass

struct AgsConditionManagerClass {
  GObjectClass object;
};