Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
gui_throttle.h File Reference
#include <glib.h>
+ Include dependency graph for gui_throttle.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef G_BEGIN_DECLS enum dt_throttle_slot_t dt_throttle_slot_t
 
typedef void(* dt_gui_throttle_callback_t) (gpointer user_data)
 

Enumerations

enum  dt_throttle_slot_t {
  DT_THROTTLE_SLOT_MAIN = 0 ,
  DT_THROTTLE_SLOT_PREVIEW ,
  DT_THROTTLE_SLOT_OTHER
}
 

Functions

void dt_gui_throttle_init (int saved_runtime_us)
 
void dt_gui_throttle_set_timeout_ms (guint timeout_ms)
 
void dt_gui_throttle_cleanup (void)
 
void dt_gui_throttle_record_runtime (dt_throttle_slot_t slot, gint64 runtime_us)
 
int dt_gui_throttle_get_runtime_us (void)
 
int dt_gui_throttle_get_pipe_runtime_us (dt_throttle_slot_t slot)
 
guint dt_gui_throttle_get_timeout_ms (void)
 
gint64 dt_gui_throttle_get_timeout_us (void)
 
void dt_gui_throttle_queue (gpointer source, dt_gui_throttle_callback_t callback, gpointer user_data)
 
void dt_gui_throttle_cancel (gpointer source)
 

Typedef Documentation

◆ dt_gui_throttle_callback_t

typedef void(* dt_gui_throttle_callback_t) (gpointer user_data)

Definition at line 19 of file gui_throttle.h.

◆ dt_throttle_slot_t

typedef G_BEGIN_DECLS enum dt_throttle_slot_t dt_throttle_slot_t

Enumeration Type Documentation

◆ dt_throttle_slot_t

Enumerator
DT_THROTTLE_SLOT_MAIN 
DT_THROTTLE_SLOT_PREVIEW 
DT_THROTTLE_SLOT_OTHER 

Definition at line 12 of file gui_throttle.h.

Function Documentation

◆ dt_gui_throttle_cancel()

◆ dt_gui_throttle_cleanup()

◆ dt_gui_throttle_get_pipe_runtime_us()

◆ dt_gui_throttle_get_runtime_us()

int dt_gui_throttle_get_runtime_us ( void  )

◆ dt_gui_throttle_get_timeout_ms()

guint dt_gui_throttle_get_timeout_ms ( void  )

◆ dt_gui_throttle_get_timeout_us()

gint64 dt_gui_throttle_get_timeout_us ( void  )

Definition at line 244 of file gui_throttle.c.

References _effective_timeout_ms().

◆ dt_gui_throttle_init()

◆ dt_gui_throttle_queue()

◆ dt_gui_throttle_record_runtime()

◆ dt_gui_throttle_set_timeout_ms()

void dt_gui_throttle_set_timeout_ms ( guint  timeout_ms)

Maximum time a queued task may wait, in ms. Set by the host from its preferences; 0 disables the timeout.

Definition at line 72 of file gui_throttle.c.

References _user_timeout_ms.

Referenced by dt_init().