AgsMainLoop

AgsMainLoop — toplevel threads

Synopsis

#include <ags/object/ags_main_loop.h>

typedef             AgsMainLoop;
struct              AgsMainLoopInterface;
AgsAsyncQueue *     ags_main_loop_get_async_queue       (AgsMainLoop *main_loop);
guint               ags_main_loop_get_last_sync         (AgsMainLoop *main_loop);
guint               ags_main_loop_get_tic               (AgsMainLoop *main_loop);
void                ags_main_loop_set_async_queue       (AgsMainLoop *main_loop,
                                                         AgsAsyncQueue *async_queue);
void                ags_main_loop_set_last_sync         (AgsMainLoop *main_loop,
                                                         guint last_sync);
void                ags_main_loop_set_tic               (AgsMainLoop *main_loop,
                                                         guint tic);

Description

The AgsMainLoop interface gives you a unique access to toplevel threads and has to be implemented for it.

Details

AgsMainLoop

typedef void AgsMainLoop;

struct AgsMainLoopInterface

struct AgsMainLoopInterface {
  GTypeInterface interface;

  void (*set_async_queue)(AgsMainLoop *main_loop, AgsAsyncQueue *async_queue);
  AgsAsyncQueue* (*get_async_queue)(AgsMainLoop *main_loop);
  
  void (*set_tic)(AgsMainLoop *main_loop, guint tic);
  guint (*get_tic)(AgsMainLoop *main_loop);

  void (*set_last_sync)(AgsMainLoop *main_loop, guint last_sync);
  guint (*get_last_sync)(AgsMainLoop *main_loop);
};

ags_main_loop_get_async_queue ()

AgsAsyncQueue *     ags_main_loop_get_async_queue       (AgsMainLoop *main_loop);

Retrieve the AgsAsyncQueue.

main_loop :

the AgsMainLoop

Returns :

the AgsAsyncQueue

Since 0.4


ags_main_loop_get_last_sync ()

guint               ags_main_loop_get_last_sync         (AgsMainLoop *main_loop);

Retrieve last sync as tic of synchronization context.

main_loop :

the AgsMainLoop

Returns :

last synced tic

Since 0.4


ags_main_loop_get_tic ()

guint               ags_main_loop_get_tic               (AgsMainLoop *main_loop);

Retrieve current tic of synchronization context.

main_loop :

the AgsMainLoop

Returns :

current tic

Since 0.4


ags_main_loop_set_async_queue ()

void                ags_main_loop_set_async_queue       (AgsMainLoop *main_loop,
                                                         AgsAsyncQueue *async_queue);

Sets the asynchronous queue.

main_loop :

the AgsMainLoop

async_queue :

the AgsAsyncQueue

Since 0.4


ags_main_loop_set_last_sync ()

void                ags_main_loop_set_last_sync         (AgsMainLoop *main_loop,
                                                         guint last_sync);

Sets last sync to last_sync.

main_loop :

the AgsMainLoop

last_sync :

last sync

Since 0.4


ags_main_loop_set_tic ()

void                ags_main_loop_set_tic               (AgsMainLoop *main_loop,
                                                         guint tic);

Sets tic to tic.

main_loop :

the AgsMainLoop

tic :

tic

Since 0.4