FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
pthread.c File Reference

Libavfilter multithreading support. More...

#include "config.h"
#include "libavutil/common.h"
#include "libavutil/cpu.h"
#include "libavutil/mem.h"
#include "libavutil/thread.h"
#include "avfilter.h"
#include "internal.h"
#include "thread.h"

Go to the source code of this file.

Data Structures

struct  ThreadContext
 

Functions

static void *attribute_align_arg worker (void *v)
 
static void slice_thread_uninit (ThreadContext *c)
 
static void slice_thread_park_workers (ThreadContext *c)
 
static int thread_execute (AVFilterContext *ctx, avfilter_action_func *func, void *arg, int *ret, int nb_jobs)
 
static int thread_init_internal (ThreadContext *c, int nb_threads)
 
int ff_graph_thread_init (AVFilterGraph *graph)
 
void ff_graph_thread_free (AVFilterGraph *graph)
 

Detailed Description

Libavfilter multithreading support.

Definition in file pthread.c.

Function Documentation

static void* attribute_align_arg worker ( void v)
static

Definition at line 58 of file pthread.c.

Referenced by thread_init_internal().

static void slice_thread_uninit ( ThreadContext c)
static

Definition at line 92 of file pthread.c.

Referenced by ff_graph_thread_free(), and thread_init_internal().

static void slice_thread_park_workers ( ThreadContext c)
static

Definition at line 110 of file pthread.c.

Referenced by thread_execute(), and thread_init_internal().

static int thread_execute ( AVFilterContext ctx,
avfilter_action_func func,
void arg,
int *  ret,
int  nb_jobs 
)
static

Definition at line 117 of file pthread.c.

Referenced by ff_graph_thread_init().

static int thread_init_internal ( ThreadContext c,
int  nb_threads 
)
static

Definition at line 149 of file pthread.c.

Referenced by ff_graph_thread_init().

int ff_graph_thread_init ( AVFilterGraph graph)

Definition at line 194 of file pthread.c.

void ff_graph_thread_free ( AVFilterGraph graph)

Definition at line 225 of file pthread.c.