AgsReturnableThread

AgsReturnableThread — returnable thread

Functions

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── AgsThread
        ╰── AgsReturnableThread

Implemented Interfaces

AgsReturnableThread implements AgsConnectable.

Includes

#include <ags/thread/ags_returnable_thread.h>

Description

The AgsReturnableThread acts as thread. It should return after a short while because of limited thread pool.

Functions

AgsReturnableThreadCallback ()

void
(*AgsReturnableThreadCallback) (AgsReturnableThread *returnable_thread,
                                gpointer data);


ags_returnable_thread_safe_run ()

void
ags_returnable_thread_safe_run (AgsReturnableThread *returnable_thread);


ags_returnable_thread_connect_safe_run ()

void
ags_returnable_thread_connect_safe_run
                               (AgsReturnableThread *returnable_thread,
                                AgsReturnableThreadCallback callback);

Connects callback to thread .

Parameters

returnable_thread

the thread to connect

 

callback

the callback

 

Since: 0.4


ags_returnable_thread_disconnect_safe_run ()

void
ags_returnable_thread_disconnect_safe_run
                               (AgsReturnableThread *returnable_thread);

Disconnects callback of thread .

Parameters

returnable_thread

the thread to disconnect

 

Since: 0.4


ags_returnable_thread_new ()

AgsReturnableThread *
ags_returnable_thread_new (GObject *thread_pool);

Create a new AgsReturnableThread.

Parameters

thread_pool

the AgsThreadPool

 

Returns

the new AgsReturnableThread

Since: 0.4

Types and Values

AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE

#define AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE (AGS_THREAD_MAX_PRECISION)


enum AgsReturnableThreadFlags

Members

AGS_RETURNABLE_THREAD_IN_USE

   

AGS_RETURNABLE_THREAD_RESET

   

AGS_RETURNABLE_THREAD_RUN_ONCE

   

Signal Details

The “safe-run” signal

void
user_function (AgsReturnableThread *agsreturnablethread,
               gpointer             user_data)

Flags: Run Last