Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
dtpthread.c File Reference
#include "control/conf.h"
#include "common/fp_mode.h"
#include <sched.h>
#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <inttypes.h>
#include <glib.h>
#include "common/darktable.h"
+ Include dependency graph for dtpthread.c:

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

Functions

int dt_pthread_create (pthread_t *thread, void *(*start_routine)(void *), void *arg, const gboolean realtime)
 
void _dt_pthread_rwlock_diag_log_rdlock (const char *name, unsigned long tid, double wait_ms, unsigned long prev_holder, gboolean prev_was_writer)
 
void _dt_pthread_rwlock_diag_log_wrlock (const char *name, unsigned long tid, double wait_ms, unsigned long prev_holder, gboolean prev_was_writer, int active_readers, unsigned long oldest_reader_tid, double oldest_reader_age_ms)
 
void dt_pthread_setname (const char *name)
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 25 of file dtpthread.c.

Function Documentation

◆ _dt_pthread_rwlock_diag_log_rdlock()

void _dt_pthread_rwlock_diag_log_rdlock ( const char *  name,
unsigned long  tid,
double  wait_ms,
unsigned long  prev_holder,
gboolean  prev_was_writer 
)

Definition at line 132 of file dtpthread.c.

References DT_DEBUG_HISTORY, dt_print(), and name.

Referenced by dt_pthread_rwlock_rdlock().

◆ _dt_pthread_rwlock_diag_log_wrlock()

void _dt_pthread_rwlock_diag_log_wrlock ( const char *  name,
unsigned long  tid,
double  wait_ms,
unsigned long  prev_holder,
gboolean  prev_was_writer,
int  active_readers,
unsigned long  oldest_reader_tid,
double  oldest_reader_age_ms 
)

Definition at line 139 of file dtpthread.c.

References DT_DEBUG_HISTORY, dt_print(), and name.

Referenced by dt_pthread_rwlock_wrlock().

◆ dt_pthread_create()

int dt_pthread_create ( pthread_t *  thread,
void *(*)(void *)  start_routine,
void arg,
const gboolean  realtime 
)

Definition at line 51 of file dtpthread.c.

References dt_conf_get_int(), param, and WANTED_THREADS_STACK_SIZE.

Referenced by _start_worker(), and dt_control_jobs_init().

◆ dt_pthread_setname()

void dt_pthread_setname ( const char *  name)