AgsThreadApplicationContext

AgsThreadApplicationContext — threaded application context

Functions

Properties

Types and Values

Object Hierarchy

    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 ();

AGS_IS_THREAD_APPLICATION_CONTEXT()

#define AGS_IS_THREAD_APPLICATION_CONTEXT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), 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_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\0"

AGS_THREAD_BUILD_ID

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

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 as threads in one single loop

 

AGS_TYPE_THREAD_APPLICATION_CONTEXT

#define AGS_TYPE_THREAD_APPLICATION_CONTEXT                (ags_thread_application_context_get_type())

struct AgsThreadApplicationContext

struct AgsThreadApplicationContext;

struct AgsThreadApplicationContextClass

struct AgsThreadApplicationContextClass {
  AgsApplicationContextClass application_contex;
};

Property Details

The “autosave-thread” property

  “autosave-thread”          AgsAutosaveThread *

The assigned thread pool.

Flags: Read / Write

Since: 1.0.0


The “thread-pool” property

  “thread-pool”              AgsThreadPool *

The assigned thread pool.

Flags: Read / Write

Since: 1.0.0