AgsPollFd

AgsPollFd — Perform operations in a thread safe context.

Functions

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── AgsPollFd

Includes

#include <ags/thread/ags_poll_fd.h>

Description

AgsPollFd object acts an interceptor in a thread safe context.

Functions

AGS_POLL_FD_GET_OBJ_MUTEX()

#define AGS_POLL_FD_GET_OBJ_MUTEX(obj) (((AgsPollFd *) obj)->obj_mutex)

ags_poll_fd_get_class_mutex ()

pthread_mutex_t *
ags_poll_fd_get_class_mutex ();

Use this function's returned mutex to access mutex fields.

Returns

the class mutex

Since: 2.0.0


ags_poll_fd_dispatch ()

void
ags_poll_fd_dispatch (AgsPollFd *poll_fd);

Dispatch IO.

Parameters

poll_fd

the AgsPollFd

 

Since: 2.0.0


ags_poll_fd_new ()

AgsPollFd *
ags_poll_fd_new ();

Create a new instance of AgsPollFd

Returns

the new AgsPollFd

Since: 2.0.0


AGS_IS_POLL_FD()

#define AGS_IS_POLL_FD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_POLL_FD))

AGS_POLL_FD()

#define AGS_POLL_FD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_POLL_FD, AgsPollFd))

AGS_POLL_FD_CLASS()

#define AGS_POLL_FD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_POLL_FD, AgsPollFdClass))

AGS_POLL_FD_GET_CLASS()

#define AGS_POLL_FD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_POLL_FD, AgsPollFdClass))

ags_poll_fd_get_type ()

GType
ags_poll_fd_get_type ();

Types and Values

enum AgsPollFdFlags

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

Members

AGS_POLL_FD_READY

not used

 

AGS_POLL_FD_THROUGHPUT

not used

 

AGS_POLL_FD_INPUT

there is input to read

 

AGS_POLL_FD_PRIORITY_INPUT

there is priority input to read

 

AGS_POLL_FD_OUTPUT

there is output available

 

AGS_POLL_FD_HANG_UP

hang up

 

AGS_TYPE_POLL_FD

#define AGS_TYPE_POLL_FD                (ags_poll_fd_get_type())

struct AgsPollFd

struct AgsPollFd;

struct AgsPollFdClass

struct AgsPollFdClass {
  GObjectClass gobject;

  void (*dispatch)(AgsPollFd *poll_fd);
};

Signal Details

The “dispatch” signal

void
user_function (AgsPollFd *poll_fd,
               gpointer   user_data)

The ::dispatch signal is emited during poll

Parameters

poll_fd

the AgsPollFd

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 2.0.0