Doxygen Book
nnstreamer_watchdog.c File Reference

NNStreamer watchdog to manage the schedule in the element. More...

Include dependency graph for nnstreamer_watchdog.c:

Go to the source code of this file.

Classes

struct  _NnstWatchdog
 Structure for NNStreamer watchdog. More...
 

Typedefs

typedef struct _NnstWatchdog NnstWatchdog
 Structure for NNStreamer watchdog. More...
 

Functions

static gboolean _loop_running_cb (NnstWatchdog *watchdog)
 Called when loop is running. More...
 
static gpointer _nnstreamer_watchdog_thread (gpointer ptr)
 Watchdog thread. More...
 
gboolean nnstreamer_watchdog_create (nns_watchdog_h *watchdog_h)
 Create nnstreamer watchdog. Recommended using watchdog handle with proper lock (e.g., GST_OBJECT_LOCK()) More...
 
void nnstreamer_watchdog_destroy (nns_watchdog_h watchdog_h)
 Destroy watchdog source. Recommended using watchdog handle with proper lock (e.g., GST_OBJECT_LOCK()) More...
 
void nnstreamer_watchdog_release (nns_watchdog_h watchdog_h)
 Release watchdog source. Recommended using watchdog handle with proper lock (e.g., GST_OBJECT_LOCK()) More...
 
gboolean nnstreamer_watchdog_feed (nns_watchdog_h watchdog_h, GSourceFunc func, guint interval, void *user_data)
 Set watchdog timeout. Recommended using watchdog handle with proper lock (e.g., GST_OBJECT_LOCK()) More...
 

Detailed Description

NNStreamer watchdog to manage the schedule in the element.

NNStreamer watchdog Copyright (C) 2024 Gichan Jang gicha.nosp@m.n2.j.nosp@m.ang@s.nosp@m.amsu.nosp@m.ng.co.nosp@m.m

Date
30 Oct 2024
See also
https://github.com/nnstreamer/nnstreamer
Author
Gichan Jang gicha.nosp@m.n2.j.nosp@m.ang@s.nosp@m.amsu.nosp@m.ng.co.nosp@m.m
Bug:
No known bugs except for NYI items

Definition in file nnstreamer_watchdog.c.

Typedef Documentation

◆ NnstWatchdog

typedef struct _NnstWatchdog NnstWatchdog

Structure for NNStreamer watchdog.

Function Documentation

◆ _loop_running_cb()

static gboolean _loop_running_cb ( NnstWatchdog watchdog)
static

Called when loop is running.

Definition at line 35 of file nnstreamer_watchdog.c.

Here is the caller graph for this function:

◆ _nnstreamer_watchdog_thread()

static gpointer _nnstreamer_watchdog_thread ( gpointer  ptr)
static

Watchdog thread.

Definition at line 48 of file nnstreamer_watchdog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nnstreamer_watchdog_create()

gboolean nnstreamer_watchdog_create ( nns_watchdog_h watchdog_h)

Create nnstreamer watchdog. Recommended using watchdog handle with proper lock (e.g., GST_OBJECT_LOCK())

Definition at line 72 of file nnstreamer_watchdog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nnstreamer_watchdog_destroy()

void nnstreamer_watchdog_destroy ( nns_watchdog_h  watchdog_h)

Destroy watchdog source. Recommended using watchdog handle with proper lock (e.g., GST_OBJECT_LOCK())

Destroy nnstreamer watchdog. Recommended using watchdog handle with proper lock (e.g., GST_OBJECT_LOCK())

Definition at line 133 of file nnstreamer_watchdog.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nnstreamer_watchdog_feed()

gboolean nnstreamer_watchdog_feed ( nns_watchdog_h  watchdog_h,
GSourceFunc  func,
guint  interval,
void *  user_data 
)

Set watchdog timeout. Recommended using watchdog handle with proper lock (e.g., GST_OBJECT_LOCK())

Definition at line 171 of file nnstreamer_watchdog.c.

Here is the caller graph for this function:

◆ nnstreamer_watchdog_release()

void nnstreamer_watchdog_release ( nns_watchdog_h  watchdog_h)

Release watchdog source. Recommended using watchdog handle with proper lock (e.g., GST_OBJECT_LOCK())

Definition at line 157 of file nnstreamer_watchdog.c.

Here is the caller graph for this function: