diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-09-09 15:59:33 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-09-23 17:08:46 +0200 |
commit | 8c185ef4e7a2f58f2a8a71c7696fb81837d936b6 (patch) | |
tree | f6d5e92236b4b8e4a577fdf0f03b520d97750642 /compat/atomics/pthread/stdatomic.c | |
parent | 6b3f9c2e92ba1973de031554c6929a8eace3c87c (diff) | |
download | ffmpeg-8c185ef4e7a2f58f2a8a71c7696fb81837d936b6.tar.gz |
compat: drop gcc, suncc, and pthreads stdatomic emulation
Since we now require a C11-compliant compiler, there should be no
supported configurations where any of these is used.
Diffstat (limited to 'compat/atomics/pthread/stdatomic.c')
-rw-r--r-- | compat/atomics/pthread/stdatomic.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/compat/atomics/pthread/stdatomic.c b/compat/atomics/pthread/stdatomic.c deleted file mode 100644 index 9fca98980b..0000000000 --- a/compat/atomics/pthread/stdatomic.c +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 - */ - -/* - * based on vlc_atomic.h from VLC - * Copyright (C) 2010 Rémi Denis-Courmont - */ - -#include <pthread.h> -#include <stdint.h> - -#include "stdatomic.h" - -static pthread_mutex_t atomic_lock = PTHREAD_MUTEX_INITIALIZER; - -void avpriv_atomic_lock(void) -{ - pthread_mutex_lock(&atomic_lock); -} - -void avpriv_atomic_unlock(void) -{ - pthread_mutex_unlock(&atomic_lock); -} |