AgsAutosaveThread

AgsAutosaveThread — auto safe

Synopsis

#include <ags/thread/ags_autosave_thread.h>

#define             AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME
#define             AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE
struct              AgsAutosaveThread;
struct              AgsAutosaveThreadClass;
AgsAutosaveThread * ags_autosave_thread_new             (GObject *devout,
                                                         AgsMain *ags_main);

Description

The AgsAutosaveThread performs auto-safe.

Details

AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME

#define AGS_AUTOSAVE_THREAD_DEFAULT_FILENAME "ags-autosaved.xml\0"

AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE

#define AGS_AUTOSAVE_THREAD_DEFAULT_JIFFIE (0.2)

struct AgsAutosaveThread

struct AgsAutosaveThread {
  AgsThread thread;


  volatile guint tic;
  volatile guint last_sync;

  AgsMain *ags_main;

  guint delay;
  guint counter;
};

struct AgsAutosaveThreadClass

struct AgsAutosaveThreadClass {
  AgsThreadClass thread;
};

ags_autosave_thread_new ()

AgsAutosaveThread * ags_autosave_thread_new             (GObject *devout,
                                                         AgsMain *ags_main);

Create a new AgsAutosaveThread.

devout :

the AgsDevout

ags_main :

the AgsMain

Returns :

the new AgsAutosaveThread

Since 0.4