chromium/third_party/ffmpeg/libavutil/executor.c

/*
 * Copyright (C) 2023 Nuo Mi
 *
 * This file is part of FFmpeg.
 *
 * FFmpeg is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * FFmpeg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with FFmpeg; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

#include "config.h"

#include "mem.h"
#include "thread.h"

#include "executor.h"

#if !HAVE_THREADS

#define ExecutorThread

#define executor_thread_create
#define executor_thread_join

#else

#define ExecutorThread

#define executor_thread_create(t, a, s, ar)
#define executor_thread_join(t, r)

#endif //!HAVE_THREADS

ThreadInfo;

struct AVExecutor {};

static AVTask* remove_task(AVTask **prev, AVTask *t)
{}

static void add_task(AVTask **prev, AVTask *t)
{}

static int run_one_task(AVExecutor *e, void *lc)
{}

#if HAVE_THREADS
static void *executor_worker_task(void *data)
{}
#endif

static void executor_free(AVExecutor *e, const int has_lock, const int has_cond)
{}

AVExecutor* av_executor_alloc(const AVTaskCallbacks *cb, int thread_count)
{}

void av_executor_free(AVExecutor **executor)
{}

void av_executor_execute(AVExecutor *e, AVTask *t)
{}