AgsThreadApplicationContext

AgsThreadApplicationContext — threaded application context

Stability Level

Stable, unless otherwise indicated

Functions

Properties

AgsThreadPool * thread-pool Read / Write

Types and Values

Object Hierarchy

    GFlags
    ╰── AgsThreadApplicationContextFlags
    GObject
    ╰── AgsApplicationContext
        ╰── AgsThreadApplicationContext

Implemented Interfaces

AgsThreadApplicationContext implements AgsConnectable and AgsConcurrencyProvider.

Includes

#include <ags/thread/ags_thread_application_context.h>

Description

The AgsThreadApplicationContext provides you multi-threaded functionality.

Functions

ags_thread_application_context_register_types ()

void
ags_thread_application_context_register_types
                               (AgsApplicationContext *application_context);

ags_thread_application_context_new ()

AgsThreadApplicationContext *
ags_thread_application_context_new ();

Create a new instance of AgsThreadApplicationContext.

Returns

the new AgsThreadApplicationContext

Since: 3.0.0


AGS_IS_THREAD_APPLICATION_CONTEXT()

#define AGS_IS_THREAD_APPLICATION_CONTEXT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_THREAD_APPLICATION_CONTEXT))

AGS_IS_THREAD_APPLICATION_CONTEXT_CLASS()

#define AGS_IS_THREAD_APPLICATION_CONTEXT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_THREAD_APPLICATION_CONTEXT))

AGS_THREAD_APPLICATION_CONTEXT()

#define AGS_THREAD_APPLICATION_CONTEXT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_THREAD_APPLICATION_CONTEXT, AgsThreadApplicationContext))

AGS_THREAD_APPLICATION_CONTEXT_CLASS()

#define AGS_THREAD_APPLICATION_CONTEXT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_THREAD_APPLICATION_CONTEXT, AgsThreadApplicationContextClass))

AGS_THREAD_APPLICATION_CONTEXT_GET_CLASS()

#define AGS_THREAD_APPLICATION_CONTEXT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_THREAD_APPLICATION_CONTEXT, AgsThreadApplicationContextClass))

ags_thread_application_context_flags_get_type ()

GType
ags_thread_application_context_flags_get_type
                               ();

ags_thread_application_context_get_type ()

GType
ags_thread_application_context_get_type
                               ();

Types and Values

AGS_THREAD_DEFAULT_VERSION

#define AGS_THREAD_DEFAULT_VERSION "0.7.122.8"

AGS_THREAD_BUILD_ID

#define AGS_THREAD_BUILD_ID "Tue Mar 21 20:03:29 CET 2017"

enum AgsThreadApplicationContextFlags

Enum values to control the behavior or indicate internal state of AgsThreadApplicationContext by enable/disable as sync_flags.

Members

AGS_THREAD_APPLICATION_CONTEXT_SINGLE_THREAD

run all threads in one single loop

 

AGS_TYPE_THREAD_APPLICATION_CONTEXT

#define AGS_TYPE_THREAD_APPLICATION_CONTEXT                (ags_thread_application_context_get_type())

AGS_TYPE_THREAD_APPLICATION_CONTEXT_FLAGS

#define AGS_TYPE_THREAD_APPLICATION_CONTEXT_FLAGS          (ags_thread_application_context_flags_get_type())

struct AgsThreadApplicationContext

struct AgsThreadApplicationContext;

struct AgsThreadApplicationContextClass

struct AgsThreadApplicationContextClass {
  AgsApplicationContextClass application_context;
};

Property Details

The “thread-pool” property

  “thread-pool”              AgsThreadPool *

The assigned thread pool.

Owner: AgsThreadApplicationContext

Flags: Read / Write

Since: 3.0.0