AgsLv2Worker

AgsLv2Worker — task thread

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── AgsLv2Worker

Implemented Interfaces

AgsLv2Worker implements AgsConnectable.

Includes

#include <ags/plugin/ags_lv2_worker.h>

Description

The AgsLv2Worker acts as task queue thread.

Functions

AGS_LV2_WORKER_RESPONSE_DATA()

#define AGS_LV2_WORKER_RESPONSE_DATA(ptr) ((AgsLv2WorkerResponseData *)(ptr))

ags_lv2_worker_alloc_response_data ()

AgsLv2WorkerResponseData *
ags_lv2_worker_alloc_response_data ();

ags_lv2_worker_free_response_data ()

void
ags_lv2_worker_free_response_data (AgsLv2WorkerResponseData *response_data);

ags_lv2_worker_respond ()

LV2_Worker_Status
ags_lv2_worker_respond (LV2_Worker_Respond_Handle handle,
                        uint32_t size,
                        const void *data);

ags_lv2_worker_schedule_work ()

LV2_Worker_Status
ags_lv2_worker_schedule_work (LV2_Worker_Schedule_Handle handle,
                              uint32_t size,
                              const void *data);

ags_lv2_worker_safe_run ()

void
ags_lv2_worker_safe_run (AgsReturnableThread *returnable_thread,
                         gpointer data);

ags_lv2_worker_interrupted_callback ()

void
ags_lv2_worker_interrupted_callback (AgsThread *thread,
                                     int sig,
                                     guint time_cycle,
                                     guint *time_spent,
                                     AgsLv2Worker *lv2_worker);

ags_lv2_worker_new ()

AgsLv2Worker *
ags_lv2_worker_new (AgsThread *returnable_thread);

Create a new AgsLv2Worker.

Parameters

returnable_thread

an AgsReturnableThread

 

Returns

the new AgsLv2Worker

Since: 1.0.0


AGS_IS_LV2_WORKER()

#define AGS_IS_LV2_WORKER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LV2_WORKER))

AGS_LV2_WORKER()

#define AGS_LV2_WORKER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LV2_WORKER, AgsLv2Worker))

AGS_LV2_WORKER_CLASS()

#define AGS_LV2_WORKER_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LV2_WORKER, AgsLv2WorkerClass))

AGS_LV2_WORKER_GET_CLASS()

#define AGS_LV2_WORKER_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LV2_WORKER, AgsLv2WorkerClass))

ags_lv2_worker_get_type ()

GType
ags_lv2_worker_get_type (void);

Types and Values

enum AgsLv2WorkerFlags

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

Members

AGS_LV2_WORKER_RUN

the worker is running

 

struct AgsLv2WorkerResponseData

struct AgsLv2WorkerResponseData {
  uint32_t size;
  void *data;
};

AGS_TYPE_LV2_WORKER

#define AGS_TYPE_LV2_WORKER                (ags_lv2_worker_get_type())

struct AgsLv2Worker

struct AgsLv2Worker;

struct AgsLv2WorkerClass

struct AgsLv2WorkerClass {
  GObjectClass gobject;
};