/src/mpv/osdep/threads-posix.h
Line | Count | Source |
1 | | /* |
2 | | * This file is part of mpv. |
3 | | * |
4 | | * mpv is free software; you can redistribute it and/or |
5 | | * modify it under the terms of the GNU Lesser General Public |
6 | | * License as published by the Free Software Foundation; either |
7 | | * version 2.1 of the License, or (at your option) any later version. |
8 | | * |
9 | | * mpv is distributed in the hope that it will be useful, |
10 | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | | * GNU Lesser General Public License for more details. |
13 | | * |
14 | | * You should have received a copy of the GNU Lesser General Public |
15 | | * License along with mpv. If not, see <http://www.gnu.org/licenses/>. |
16 | | */ |
17 | | |
18 | | #pragma once |
19 | | |
20 | | #include <errno.h> |
21 | | #include <pthread.h> |
22 | | #include <stdio.h> |
23 | | |
24 | | #include "common/common.h" |
25 | | #include "config.h" |
26 | | // We make use of NON-POSIX pthreads functions and certain systems |
27 | | // require this header to build without issues. (ex: OpenBSD) |
28 | | #if HAVE_BSD_THREAD_NAME |
29 | | #include <pthread_np.h> |
30 | | #endif |
31 | | #if HAVE_PR_SET_TIMERSLACK |
32 | | #include <sys/prctl.h> |
33 | | #endif |
34 | | #include "osdep/compiler.h" |
35 | | #include "timer.h" |
36 | | |
37 | | int mp_ptwrap_check(const char *file, int line, int res); |
38 | | int mp_ptwrap_mutex_init(const char *file, int line, pthread_mutex_t *m, |
39 | | const pthread_mutexattr_t *attr); |
40 | | int mp_ptwrap_mutex_trylock(const char *file, int line, pthread_mutex_t *m); |
41 | | |
42 | | #if HAVE_PTHREAD_DEBUG |
43 | | |
44 | | // pthread debugging wrappers. Technically, this is undefined behavior, because |
45 | | // you are not supposed to define any symbols that clash with reserved names. |
46 | | // Other than that, they should be fine. |
47 | | |
48 | | // Note: mpv normally never checks pthread error return values of certain |
49 | | // functions that should never fail. It does so because these cases would |
50 | | // be undefined behavior anyway (such as double-frees etc.). However, |
51 | | // since there are no good pthread debugging tools, these wrappers are |
52 | | // provided for the sake of debugging. They crash on unexpected errors. |
53 | | // |
54 | | // Technically, pthread_cond/mutex_init() can fail with ENOMEM. We don't |
55 | | // really respect this for normal/recursive mutex types, as due to the |
56 | | // existence of static initializers, no sane implementation could actually |
57 | | // require allocating memory. |
58 | | |
59 | | #define MP_PTWRAP(fn, ...) \ |
60 | | mp_ptwrap_check(__FILE__, __LINE__, (fn)(__VA_ARGS__)) |
61 | | |
62 | | // ISO C defines that all standard functions can be macros, except undef'ing |
63 | | // them is allowed and must make the "real" definitions available. (Whatever.) |
64 | | #undef pthread_cond_init |
65 | | #undef pthread_cond_destroy |
66 | | #undef pthread_cond_broadcast |
67 | | #undef pthread_cond_signal |
68 | | #undef pthread_cond_wait |
69 | | #undef pthread_cond_timedwait |
70 | | #undef pthread_detach |
71 | | #undef pthread_join |
72 | | #undef pthread_mutex_destroy |
73 | | #undef pthread_mutex_lock |
74 | | #undef pthread_mutex_trylock |
75 | | #undef pthread_mutex_unlock |
76 | | |
77 | | #define pthread_cond_init(...) MP_PTWRAP(pthread_cond_init, __VA_ARGS__) |
78 | | #define pthread_cond_destroy(...) MP_PTWRAP(pthread_cond_destroy, __VA_ARGS__) |
79 | | #define pthread_cond_broadcast(...) MP_PTWRAP(pthread_cond_broadcast, __VA_ARGS__) |
80 | | #define pthread_cond_signal(...) MP_PTWRAP(pthread_cond_signal, __VA_ARGS__) |
81 | | #define pthread_cond_wait(...) MP_PTWRAP(pthread_cond_wait, __VA_ARGS__) |
82 | | #define pthread_cond_timedwait(...) MP_PTWRAP(pthread_cond_timedwait, __VA_ARGS__) |
83 | | #define pthread_detach(...) MP_PTWRAP(pthread_detach, __VA_ARGS__) |
84 | | #define pthread_join(...) MP_PTWRAP(pthread_join, __VA_ARGS__) |
85 | | #define pthread_mutex_destroy(...) MP_PTWRAP(pthread_mutex_destroy, __VA_ARGS__) |
86 | | #define pthread_mutex_lock(...) MP_PTWRAP(pthread_mutex_lock, __VA_ARGS__) |
87 | | #define pthread_mutex_unlock(...) MP_PTWRAP(pthread_mutex_unlock, __VA_ARGS__) |
88 | | |
89 | | #define pthread_mutex_init(...) \ |
90 | | mp_ptwrap_mutex_init(__FILE__, __LINE__, __VA_ARGS__) |
91 | | |
92 | | #define pthread_mutex_trylock(...) \ |
93 | | mp_ptwrap_mutex_trylock(__FILE__, __LINE__, __VA_ARGS__) |
94 | | |
95 | | #endif |
96 | | |
97 | | typedef struct { |
98 | | pthread_cond_t cond; |
99 | | clockid_t clk_id; |
100 | | } mp_cond; |
101 | | |
102 | | typedef pthread_mutex_t mp_mutex; |
103 | | typedef pthread_mutex_t mp_static_mutex; |
104 | | typedef pthread_once_t mp_once; |
105 | | typedef pthread_t mp_thread_id; |
106 | | typedef pthread_t mp_thread; |
107 | | |
108 | 617k | #define MP_STATIC_COND_INITIALIZER { .cond = PTHREAD_COND_INITIALIZER, .clk_id = CLOCK_REALTIME } |
109 | 617k | #define MP_STATIC_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER |
110 | | #define MP_STATIC_ONCE_INITIALIZER PTHREAD_ONCE_INIT |
111 | | |
112 | | static inline int mp_mutex_init(mp_mutex *mutex) |
113 | 1.08M | { |
114 | 1.08M | #ifndef NDEBUG |
115 | 1.08M | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; |
116 | | #else |
117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; |
118 | | #endif |
119 | | |
120 | 1.08M | int ret = 0; |
121 | 1.08M | pthread_mutexattr_t attr; |
122 | 1.08M | ret = pthread_mutexattr_init(&attr); |
123 | 1.08M | if (ret != 0) |
124 | 0 | return ret; |
125 | | |
126 | 1.08M | pthread_mutexattr_settype(&attr, mutex_type); |
127 | 1.08M | ret = pthread_mutex_init(mutex, &attr); |
128 | 1.08M | pthread_mutexattr_destroy(&attr); |
129 | 1.08M | mp_assert(!ret); |
130 | 1.08M | return ret; |
131 | 1.08M | } Unexecuted instantiation: ao_lavc.c:mp_mutex_init Line | Count | Source | 113 | 30.0k | { | 114 | 30.0k | #ifndef NDEBUG | 115 | 30.0k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 30.0k | int ret = 0; | 121 | 30.0k | pthread_mutexattr_t attr; | 122 | 30.0k | ret = pthread_mutexattr_init(&attr); | 123 | 30.0k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 30.0k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 30.0k | ret = pthread_mutex_init(mutex, &attr); | 128 | 30.0k | pthread_mutexattr_destroy(&attr); | 129 | 30.0k | mp_assert(!ret); | 130 | 30.0k | return ret; | 131 | 30.0k | } |
Unexecuted instantiation: av_log.c:mp_mutex_init Unexecuted instantiation: encode_lavc.c:mp_mutex_init Line | Count | Source | 113 | 46.6k | { | 114 | 46.6k | #ifndef NDEBUG | 115 | 46.6k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 46.6k | int ret = 0; | 121 | 46.6k | pthread_mutexattr_t attr; | 122 | 46.6k | ret = pthread_mutexattr_init(&attr); | 123 | 46.6k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 46.6k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 46.6k | ret = pthread_mutex_init(mutex, &attr); | 128 | 46.6k | pthread_mutexattr_destroy(&attr); | 129 | 46.6k | mp_assert(!ret); | 130 | 46.6k | return ret; | 131 | 46.6k | } |
Line | Count | Source | 113 | 11.6k | { | 114 | 11.6k | #ifndef NDEBUG | 115 | 11.6k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 11.6k | int ret = 0; | 121 | 11.6k | pthread_mutexattr_t attr; | 122 | 11.6k | ret = pthread_mutexattr_init(&attr); | 123 | 11.6k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 11.6k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 11.6k | ret = pthread_mutex_init(mutex, &attr); | 128 | 11.6k | pthread_mutexattr_destroy(&attr); | 129 | 11.6k | mp_assert(!ret); | 130 | 11.6k | return ret; | 131 | 11.6k | } |
Line | Count | Source | 113 | 360k | { | 114 | 360k | #ifndef NDEBUG | 115 | 360k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 360k | int ret = 0; | 121 | 360k | pthread_mutexattr_t attr; | 122 | 360k | ret = pthread_mutexattr_init(&attr); | 123 | 360k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 360k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 360k | ret = pthread_mutex_init(mutex, &attr); | 128 | 360k | pthread_mutexattr_destroy(&attr); | 129 | 360k | mp_assert(!ret); | 130 | 360k | return ret; | 131 | 360k | } |
Unexecuted instantiation: demux_lavf.c:mp_mutex_init Unexecuted instantiation: demux_mkv_timeline.c:mp_mutex_init Unexecuted instantiation: demux_playlist.c:mp_mutex_init packet_pool.c:mp_mutex_init Line | Count | Source | 113 | 11.6k | { | 114 | 11.6k | #ifndef NDEBUG | 115 | 11.6k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 11.6k | int ret = 0; | 121 | 11.6k | pthread_mutexattr_t attr; | 122 | 11.6k | ret = pthread_mutexattr_init(&attr); | 123 | 11.6k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 11.6k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 11.6k | ret = pthread_mutex_init(mutex, &attr); | 128 | 11.6k | pthread_mutexattr_destroy(&attr); | 129 | 11.6k | mp_assert(!ret); | 130 | 11.6k | return ret; | 131 | 11.6k | } |
f_async_queue.c:mp_mutex_init Line | Count | Source | 113 | 15.0k | { | 114 | 15.0k | #ifndef NDEBUG | 115 | 15.0k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 15.0k | int ret = 0; | 121 | 15.0k | pthread_mutexattr_t attr; | 122 | 15.0k | ret = pthread_mutexattr_init(&attr); | 123 | 15.0k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 15.0k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 15.0k | ret = pthread_mutex_init(mutex, &attr); | 128 | 15.0k | pthread_mutexattr_destroy(&attr); | 129 | 15.0k | mp_assert(!ret); | 130 | 15.0k | return ret; | 131 | 15.0k | } |
f_decoder_wrapper.c:mp_mutex_init Line | Count | Source | 113 | 46.5k | { | 114 | 46.5k | #ifndef NDEBUG | 115 | 46.5k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 46.5k | int ret = 0; | 121 | 46.5k | pthread_mutexattr_t attr; | 122 | 46.5k | ret = pthread_mutexattr_init(&attr); | 123 | 46.5k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 46.5k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 46.5k | ret = pthread_mutex_init(mutex, &attr); | 128 | 46.5k | pthread_mutexattr_destroy(&attr); | 129 | 46.5k | mp_assert(!ret); | 130 | 46.5k | return ret; | 131 | 46.5k | } |
Unexecuted instantiation: f_lavfi.c:mp_mutex_init Unexecuted instantiation: f_output_chain.c:mp_mutex_init Line | Count | Source | 113 | 31.2k | { | 114 | 31.2k | #ifndef NDEBUG | 115 | 31.2k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 31.2k | int ret = 0; | 121 | 31.2k | pthread_mutexattr_t attr; | 122 | 31.2k | ret = pthread_mutexattr_init(&attr); | 123 | 31.2k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 31.2k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 31.2k | ret = pthread_mutex_init(mutex, &attr); | 128 | 31.2k | pthread_mutexattr_destroy(&attr); | 129 | 31.2k | mp_assert(!ret); | 130 | 31.2k | return ret; | 131 | 31.2k | } |
Unexecuted instantiation: dnd.c:mp_mutex_init Line | Count | Source | 113 | 11.6k | { | 114 | 11.6k | #ifndef NDEBUG | 115 | 11.6k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 11.6k | int ret = 0; | 121 | 11.6k | pthread_mutexattr_t attr; | 122 | 11.6k | ret = pthread_mutexattr_init(&attr); | 123 | 11.6k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 11.6k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 11.6k | ret = pthread_mutex_init(mutex, &attr); | 128 | 11.6k | pthread_mutexattr_destroy(&attr); | 129 | 11.6k | mp_assert(!ret); | 130 | 11.6k | return ret; | 131 | 11.6k | } |
Line | Count | Source | 113 | 48.3k | { | 114 | 48.3k | #ifndef NDEBUG | 115 | 48.3k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 48.3k | int ret = 0; | 121 | 48.3k | pthread_mutexattr_t attr; | 122 | 48.3k | ret = pthread_mutexattr_init(&attr); | 123 | 48.3k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 48.3k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 48.3k | ret = pthread_mutex_init(mutex, &attr); | 128 | 48.3k | pthread_mutexattr_destroy(&attr); | 129 | 48.3k | mp_assert(!ret); | 130 | 48.3k | return ret; | 131 | 48.3k | } |
Unexecuted instantiation: rendezvous.c:mp_mutex_init thread_pool.c:mp_mutex_init Line | Count | Source | 113 | 11.6k | { | 114 | 11.6k | #ifndef NDEBUG | 115 | 11.6k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 11.6k | int ret = 0; | 121 | 11.6k | pthread_mutexattr_t attr; | 122 | 11.6k | ret = pthread_mutexattr_init(&attr); | 123 | 11.6k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 11.6k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 11.6k | ret = pthread_mutex_init(mutex, &attr); | 128 | 11.6k | pthread_mutexattr_destroy(&attr); | 129 | 11.6k | mp_assert(!ret); | 130 | 11.6k | return ret; | 131 | 11.6k | } |
thread_tools.c:mp_mutex_init Line | Count | Source | 113 | 204k | { | 114 | 204k | #ifndef NDEBUG | 115 | 204k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 204k | int ret = 0; | 121 | 204k | pthread_mutexattr_t attr; | 122 | 204k | ret = pthread_mutexattr_init(&attr); | 123 | 204k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 204k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 204k | ret = pthread_mutex_init(mutex, &attr); | 128 | 204k | pthread_mutexattr_destroy(&attr); | 129 | 204k | mp_assert(!ret); | 130 | 204k | return ret; | 131 | 204k | } |
m_config_core.c:mp_mutex_init Line | Count | Source | 113 | 36.1k | { | 114 | 36.1k | #ifndef NDEBUG | 115 | 36.1k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 36.1k | int ret = 0; | 121 | 36.1k | pthread_mutexattr_t attr; | 122 | 36.1k | ret = pthread_mutexattr_init(&attr); | 123 | 36.1k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 36.1k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 36.1k | ret = pthread_mutex_init(mutex, &attr); | 128 | 36.1k | pthread_mutexattr_destroy(&attr); | 129 | 36.1k | mp_assert(!ret); | 130 | 36.1k | return ret; | 131 | 36.1k | } |
Unexecuted instantiation: m_config_frontend.c:mp_mutex_init Unexecuted instantiation: options.c:mp_mutex_init Unexecuted instantiation: audio.c:mp_mutex_init Line | Count | Source | 113 | 81.7k | { | 114 | 81.7k | #ifndef NDEBUG | 115 | 81.7k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 81.7k | int ret = 0; | 121 | 81.7k | pthread_mutexattr_t attr; | 122 | 81.7k | ret = pthread_mutexattr_init(&attr); | 123 | 81.7k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 81.7k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 81.7k | ret = pthread_mutex_init(mutex, &attr); | 128 | 81.7k | pthread_mutexattr_destroy(&attr); | 129 | 81.7k | mp_assert(!ret); | 130 | 81.7k | return ret; | 131 | 81.7k | } |
Unexecuted instantiation: command.c:mp_mutex_init Unexecuted instantiation: configfiles.c:mp_mutex_init Unexecuted instantiation: discnav.c:mp_mutex_init Unexecuted instantiation: external_files.c:mp_mutex_init Unexecuted instantiation: loadfile.c:mp_mutex_init Line | Count | Source | 113 | 11.6k | { | 114 | 11.6k | #ifndef NDEBUG | 115 | 11.6k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 11.6k | int ret = 0; | 121 | 11.6k | pthread_mutexattr_t attr; | 122 | 11.6k | ret = pthread_mutexattr_init(&attr); | 123 | 11.6k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 11.6k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 11.6k | ret = pthread_mutex_init(mutex, &attr); | 128 | 11.6k | pthread_mutexattr_destroy(&attr); | 129 | 11.6k | mp_assert(!ret); | 130 | 11.6k | return ret; | 131 | 11.6k | } |
Unexecuted instantiation: misc.c:mp_mutex_init Line | Count | Source | 113 | 11.6k | { | 114 | 11.6k | #ifndef NDEBUG | 115 | 11.6k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 11.6k | int ret = 0; | 121 | 11.6k | pthread_mutexattr_t attr; | 122 | 11.6k | ret = pthread_mutexattr_init(&attr); | 123 | 11.6k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 11.6k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 11.6k | ret = pthread_mutex_init(mutex, &attr); | 128 | 11.6k | pthread_mutexattr_destroy(&attr); | 129 | 11.6k | mp_assert(!ret); | 130 | 11.6k | return ret; | 131 | 11.6k | } |
Unexecuted instantiation: playloop.c:mp_mutex_init Unexecuted instantiation: screenshot.c:mp_mutex_init Unexecuted instantiation: scripting.c:mp_mutex_init Unexecuted instantiation: sub.c:mp_mutex_init Unexecuted instantiation: video.c:mp_mutex_init clipboard.c:mp_mutex_init Line | Count | Source | 113 | 11.6k | { | 114 | 11.6k | #ifndef NDEBUG | 115 | 11.6k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 11.6k | int ret = 0; | 121 | 11.6k | pthread_mutexattr_t attr; | 122 | 11.6k | ret = pthread_mutexattr_init(&attr); | 123 | 11.6k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 11.6k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 11.6k | ret = pthread_mutex_init(mutex, &attr); | 128 | 11.6k | pthread_mutexattr_destroy(&attr); | 129 | 11.6k | mp_assert(!ret); | 130 | 11.6k | return ret; | 131 | 11.6k | } |
Unexecuted instantiation: clipboard-vo.c:mp_mutex_init Unexecuted instantiation: stream.c:mp_mutex_init Unexecuted instantiation: stream_cb.c:mp_mutex_init Unexecuted instantiation: stream_file.c:mp_mutex_init Unexecuted instantiation: stream_lavf.c:mp_mutex_init Unexecuted instantiation: stream_mpv.c:mp_mutex_init Line | Count | Source | 113 | 4.76k | { | 114 | 4.76k | #ifndef NDEBUG | 115 | 4.76k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 4.76k | int ret = 0; | 121 | 4.76k | pthread_mutexattr_t attr; | 122 | 4.76k | ret = pthread_mutexattr_init(&attr); | 123 | 4.76k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 4.76k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 4.76k | ret = pthread_mutex_init(mutex, &attr); | 128 | 4.76k | pthread_mutexattr_destroy(&attr); | 129 | 4.76k | mp_assert(!ret); | 130 | 4.76k | return ret; | 131 | 4.76k | } |
Unexecuted instantiation: filter_sdh.c:mp_mutex_init Unexecuted instantiation: lavc_conv.c:mp_mutex_init Unexecuted instantiation: osd_libass.c:mp_mutex_init Unexecuted instantiation: sd_ass.c:mp_mutex_init Unexecuted instantiation: sd_lavc.c:mp_mutex_init Line | Count | Source | 113 | 29.8k | { | 114 | 29.8k | #ifndef NDEBUG | 115 | 29.8k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 29.8k | int ret = 0; | 121 | 29.8k | pthread_mutexattr_t attr; | 122 | 29.8k | ret = pthread_mutexattr_init(&attr); | 123 | 29.8k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 29.8k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 29.8k | ret = pthread_mutex_init(mutex, &attr); | 128 | 29.8k | pthread_mutexattr_destroy(&attr); | 129 | 29.8k | mp_assert(!ret); | 130 | 29.8k | return ret; | 131 | 29.8k | } |
Unexecuted instantiation: vf_sub.c:mp_mutex_init Unexecuted instantiation: hwdec.c:mp_mutex_init Unexecuted instantiation: mp_image.c:mp_mutex_init Unexecuted instantiation: mp_image_pool.c:mp_mutex_init Unexecuted instantiation: aspect.c:mp_mutex_init Unexecuted instantiation: dr_helper.c:mp_mutex_init Unexecuted instantiation: terminal_swapchain.c:mp_mutex_init Unexecuted instantiation: context.c:mp_mutex_init Unexecuted instantiation: error_diffusion.c:mp_mutex_init Unexecuted instantiation: libmpv_gpu.c:mp_mutex_init Unexecuted instantiation: shader_cache.c:mp_mutex_init Unexecuted instantiation: spirv.c:mp_mutex_init Unexecuted instantiation: user_shaders.c:mp_mutex_init Unexecuted instantiation: utils.c:mp_mutex_init Unexecuted instantiation: video_shaders.c:mp_mutex_init Unexecuted instantiation: libmpv_sw.c:mp_mutex_init Line | Count | Source | 113 | 63.8k | { | 114 | 63.8k | #ifndef NDEBUG | 115 | 63.8k | int mutex_type = PTHREAD_MUTEX_ERRORCHECK; | 116 | | #else | 117 | | int mutex_type = PTHREAD_MUTEX_DEFAULT; | 118 | | #endif | 119 | | | 120 | 63.8k | int ret = 0; | 121 | 63.8k | pthread_mutexattr_t attr; | 122 | 63.8k | ret = pthread_mutexattr_init(&attr); | 123 | 63.8k | if (ret != 0) | 124 | 0 | return ret; | 125 | | | 126 | 63.8k | pthread_mutexattr_settype(&attr, mutex_type); | 127 | 63.8k | ret = pthread_mutex_init(mutex, &attr); | 128 | 63.8k | pthread_mutexattr_destroy(&attr); | 129 | 63.8k | mp_assert(!ret); | 130 | 63.8k | return ret; | 131 | 63.8k | } |
Unexecuted instantiation: vo_gpu.c:mp_mutex_init Unexecuted instantiation: vo_image.c:mp_mutex_init Unexecuted instantiation: vo_lavc.c:mp_mutex_init Unexecuted instantiation: vo_libmpv.c:mp_mutex_init Unexecuted instantiation: vo_null.c:mp_mutex_init Unexecuted instantiation: vo_tct.c:mp_mutex_init Unexecuted instantiation: vo_kitty.c:mp_mutex_init Unexecuted instantiation: win_state.c:mp_mutex_init Unexecuted instantiation: vo_gpu_next.c:mp_mutex_init Unexecuted instantiation: libmpv_gpu_next.c:mp_mutex_init Unexecuted instantiation: timer.c:mp_mutex_init Unexecuted instantiation: ta.c:mp_mutex_init Unexecuted instantiation: threads-posix.c:mp_mutex_init Unexecuted instantiation: ipc-unix.c:mp_mutex_init Unexecuted instantiation: terminal-unix.c:mp_mutex_init Unexecuted instantiation: filter_regex.c:mp_mutex_init Unexecuted instantiation: als-linux.c:mp_mutex_init Unexecuted instantiation: path-unix.c:mp_mutex_init Unexecuted instantiation: stream_dvb.c:mp_mutex_init Unexecuted instantiation: common.c:mp_mutex_init Unexecuted instantiation: formats.c:mp_mutex_init Unexecuted instantiation: libmpv_gl.c:mp_mutex_init Unexecuted instantiation: ra_gl.c:mp_mutex_init |
132 | | |
133 | 1.69M | #define mp_mutex_destroy pthread_mutex_destroy |
134 | 551M | #define mp_mutex_lock pthread_mutex_lock |
135 | 0 | #define mp_mutex_trylock pthread_mutex_trylock |
136 | 551M | #define mp_mutex_unlock pthread_mutex_unlock |
137 | | |
138 | | static inline int mp_cond_init(mp_cond *cond) |
139 | 733k | { |
140 | 733k | mp_assert(cond); |
141 | | |
142 | 733k | int ret = 0; |
143 | 733k | pthread_condattr_t attr; |
144 | 733k | ret = pthread_condattr_init(&attr); |
145 | 733k | if (ret) |
146 | 0 | return ret; |
147 | | |
148 | 733k | cond->clk_id = CLOCK_REALTIME; |
149 | 733k | #if HAVE_PTHREAD_CONDATTR_SETCLOCK |
150 | 733k | if (!pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)) |
151 | 733k | cond->clk_id = CLOCK_MONOTONIC; |
152 | 733k | #endif |
153 | | |
154 | 733k | ret = pthread_cond_init(&cond->cond, &attr); |
155 | 733k | pthread_condattr_destroy(&attr); |
156 | 733k | return ret; |
157 | 733k | } Unexecuted instantiation: ao_lavc.c:mp_cond_init Line | Count | Source | 139 | 30.0k | { | 140 | 30.0k | mp_assert(cond); | 141 | | | 142 | 30.0k | int ret = 0; | 143 | 30.0k | pthread_condattr_t attr; | 144 | 30.0k | ret = pthread_condattr_init(&attr); | 145 | 30.0k | if (ret) | 146 | 0 | return ret; | 147 | | | 148 | 30.0k | cond->clk_id = CLOCK_REALTIME; | 149 | 30.0k | #if HAVE_PTHREAD_CONDATTR_SETCLOCK | 150 | 30.0k | if (!pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)) | 151 | 30.0k | cond->clk_id = CLOCK_MONOTONIC; | 152 | 30.0k | #endif | 153 | | | 154 | 30.0k | ret = pthread_cond_init(&cond->cond, &attr); | 155 | 30.0k | pthread_condattr_destroy(&attr); | 156 | 30.0k | return ret; | 157 | 30.0k | } |
Unexecuted instantiation: av_log.c:mp_cond_init Unexecuted instantiation: encode_lavc.c:mp_cond_init Line | Count | Source | 139 | 11.6k | { | 140 | 11.6k | mp_assert(cond); | 141 | | | 142 | 11.6k | int ret = 0; | 143 | 11.6k | pthread_condattr_t attr; | 144 | 11.6k | ret = pthread_condattr_init(&attr); | 145 | 11.6k | if (ret) | 146 | 0 | return ret; | 147 | | | 148 | 11.6k | cond->clk_id = CLOCK_REALTIME; | 149 | 11.6k | #if HAVE_PTHREAD_CONDATTR_SETCLOCK | 150 | 11.6k | if (!pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)) | 151 | 11.6k | cond->clk_id = CLOCK_MONOTONIC; | 152 | 11.6k | #endif | 153 | | | 154 | 11.6k | ret = pthread_cond_init(&cond->cond, &attr); | 155 | 11.6k | pthread_condattr_destroy(&attr); | 156 | 11.6k | return ret; | 157 | 11.6k | } |
Unexecuted instantiation: stats.c:mp_cond_init Line | Count | Source | 139 | 360k | { | 140 | 360k | mp_assert(cond); | 141 | | | 142 | 360k | int ret = 0; | 143 | 360k | pthread_condattr_t attr; | 144 | 360k | ret = pthread_condattr_init(&attr); | 145 | 360k | if (ret) | 146 | 0 | return ret; | 147 | | | 148 | 360k | cond->clk_id = CLOCK_REALTIME; | 149 | 360k | #if HAVE_PTHREAD_CONDATTR_SETCLOCK | 150 | 360k | if (!pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)) | 151 | 360k | cond->clk_id = CLOCK_MONOTONIC; | 152 | 360k | #endif | 153 | | | 154 | 360k | ret = pthread_cond_init(&cond->cond, &attr); | 155 | 360k | pthread_condattr_destroy(&attr); | 156 | 360k | return ret; | 157 | 360k | } |
Unexecuted instantiation: demux_lavf.c:mp_cond_init Unexecuted instantiation: demux_mkv_timeline.c:mp_cond_init Unexecuted instantiation: demux_playlist.c:mp_cond_init Unexecuted instantiation: packet_pool.c:mp_cond_init Unexecuted instantiation: f_async_queue.c:mp_cond_init Unexecuted instantiation: f_decoder_wrapper.c:mp_cond_init Unexecuted instantiation: f_lavfi.c:mp_cond_init Unexecuted instantiation: f_output_chain.c:mp_cond_init Unexecuted instantiation: filter.c:mp_cond_init Unexecuted instantiation: dnd.c:mp_cond_init Unexecuted instantiation: input.c:mp_cond_init Line | Count | Source | 139 | 48.3k | { | 140 | 48.3k | mp_assert(cond); | 141 | | | 142 | 48.3k | int ret = 0; | 143 | 48.3k | pthread_condattr_t attr; | 144 | 48.3k | ret = pthread_condattr_init(&attr); | 145 | 48.3k | if (ret) | 146 | 0 | return ret; | 147 | | | 148 | 48.3k | cond->clk_id = CLOCK_REALTIME; | 149 | 48.3k | #if HAVE_PTHREAD_CONDATTR_SETCLOCK | 150 | 48.3k | if (!pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)) | 151 | 48.3k | cond->clk_id = CLOCK_MONOTONIC; | 152 | 48.3k | #endif | 153 | | | 154 | 48.3k | ret = pthread_cond_init(&cond->cond, &attr); | 155 | 48.3k | pthread_condattr_destroy(&attr); | 156 | 48.3k | return ret; | 157 | 48.3k | } |
Unexecuted instantiation: rendezvous.c:mp_cond_init thread_pool.c:mp_cond_init Line | Count | Source | 139 | 11.6k | { | 140 | 11.6k | mp_assert(cond); | 141 | | | 142 | 11.6k | int ret = 0; | 143 | 11.6k | pthread_condattr_t attr; | 144 | 11.6k | ret = pthread_condattr_init(&attr); | 145 | 11.6k | if (ret) | 146 | 0 | return ret; | 147 | | | 148 | 11.6k | cond->clk_id = CLOCK_REALTIME; | 149 | 11.6k | #if HAVE_PTHREAD_CONDATTR_SETCLOCK | 150 | 11.6k | if (!pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)) | 151 | 11.6k | cond->clk_id = CLOCK_MONOTONIC; | 152 | 11.6k | #endif | 153 | | | 154 | 11.6k | ret = pthread_cond_init(&cond->cond, &attr); | 155 | 11.6k | pthread_condattr_destroy(&attr); | 156 | 11.6k | return ret; | 157 | 11.6k | } |
thread_tools.c:mp_cond_init Line | Count | Source | 139 | 204k | { | 140 | 204k | mp_assert(cond); | 141 | | | 142 | 204k | int ret = 0; | 143 | 204k | pthread_condattr_t attr; | 144 | 204k | ret = pthread_condattr_init(&attr); | 145 | 204k | if (ret) | 146 | 0 | return ret; | 147 | | | 148 | 204k | cond->clk_id = CLOCK_REALTIME; | 149 | 204k | #if HAVE_PTHREAD_CONDATTR_SETCLOCK | 150 | 204k | if (!pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)) | 151 | 204k | cond->clk_id = CLOCK_MONOTONIC; | 152 | 204k | #endif | 153 | | | 154 | 204k | ret = pthread_cond_init(&cond->cond, &attr); | 155 | 204k | pthread_condattr_destroy(&attr); | 156 | 204k | return ret; | 157 | 204k | } |
Unexecuted instantiation: m_config_core.c:mp_cond_init Unexecuted instantiation: m_config_frontend.c:mp_cond_init Unexecuted instantiation: options.c:mp_cond_init Unexecuted instantiation: audio.c:mp_cond_init Line | Count | Source | 139 | 35.0k | { | 140 | 35.0k | mp_assert(cond); | 141 | | | 142 | 35.0k | int ret = 0; | 143 | 35.0k | pthread_condattr_t attr; | 144 | 35.0k | ret = pthread_condattr_init(&attr); | 145 | 35.0k | if (ret) | 146 | 0 | return ret; | 147 | | | 148 | 35.0k | cond->clk_id = CLOCK_REALTIME; | 149 | 35.0k | #if HAVE_PTHREAD_CONDATTR_SETCLOCK | 150 | 35.0k | if (!pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)) | 151 | 35.0k | cond->clk_id = CLOCK_MONOTONIC; | 152 | 35.0k | #endif | 153 | | | 154 | 35.0k | ret = pthread_cond_init(&cond->cond, &attr); | 155 | 35.0k | pthread_condattr_destroy(&attr); | 156 | 35.0k | return ret; | 157 | 35.0k | } |
Unexecuted instantiation: command.c:mp_cond_init Unexecuted instantiation: configfiles.c:mp_cond_init Unexecuted instantiation: discnav.c:mp_cond_init Unexecuted instantiation: external_files.c:mp_cond_init Unexecuted instantiation: loadfile.c:mp_cond_init Unexecuted instantiation: main.c:mp_cond_init Unexecuted instantiation: misc.c:mp_cond_init Unexecuted instantiation: osd.c:mp_cond_init Unexecuted instantiation: playloop.c:mp_cond_init Unexecuted instantiation: screenshot.c:mp_cond_init Unexecuted instantiation: scripting.c:mp_cond_init Unexecuted instantiation: sub.c:mp_cond_init Unexecuted instantiation: video.c:mp_cond_init Unexecuted instantiation: clipboard.c:mp_cond_init Unexecuted instantiation: clipboard-vo.c:mp_cond_init Unexecuted instantiation: stream.c:mp_cond_init Unexecuted instantiation: stream_cb.c:mp_cond_init Unexecuted instantiation: stream_file.c:mp_cond_init Unexecuted instantiation: stream_lavf.c:mp_cond_init Unexecuted instantiation: stream_mpv.c:mp_cond_init Unexecuted instantiation: dec_sub.c:mp_cond_init Unexecuted instantiation: filter_sdh.c:mp_cond_init Unexecuted instantiation: lavc_conv.c:mp_cond_init Unexecuted instantiation: osd_libass.c:mp_cond_init Unexecuted instantiation: sd_ass.c:mp_cond_init Unexecuted instantiation: sd_lavc.c:mp_cond_init Unexecuted instantiation: vd_lavc.c:mp_cond_init Unexecuted instantiation: vf_sub.c:mp_cond_init Unexecuted instantiation: hwdec.c:mp_cond_init Unexecuted instantiation: mp_image.c:mp_cond_init Unexecuted instantiation: mp_image_pool.c:mp_cond_init Unexecuted instantiation: aspect.c:mp_cond_init Unexecuted instantiation: dr_helper.c:mp_cond_init Unexecuted instantiation: terminal_swapchain.c:mp_cond_init Unexecuted instantiation: context.c:mp_cond_init Unexecuted instantiation: error_diffusion.c:mp_cond_init Unexecuted instantiation: libmpv_gpu.c:mp_cond_init Unexecuted instantiation: shader_cache.c:mp_cond_init Unexecuted instantiation: spirv.c:mp_cond_init Unexecuted instantiation: user_shaders.c:mp_cond_init Unexecuted instantiation: utils.c:mp_cond_init Unexecuted instantiation: video_shaders.c:mp_cond_init Unexecuted instantiation: libmpv_sw.c:mp_cond_init Line | Count | Source | 139 | 31.9k | { | 140 | 31.9k | mp_assert(cond); | 141 | | | 142 | 31.9k | int ret = 0; | 143 | 31.9k | pthread_condattr_t attr; | 144 | 31.9k | ret = pthread_condattr_init(&attr); | 145 | 31.9k | if (ret) | 146 | 0 | return ret; | 147 | | | 148 | 31.9k | cond->clk_id = CLOCK_REALTIME; | 149 | 31.9k | #if HAVE_PTHREAD_CONDATTR_SETCLOCK | 150 | 31.9k | if (!pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)) | 151 | 31.9k | cond->clk_id = CLOCK_MONOTONIC; | 152 | 31.9k | #endif | 153 | | | 154 | 31.9k | ret = pthread_cond_init(&cond->cond, &attr); | 155 | 31.9k | pthread_condattr_destroy(&attr); | 156 | 31.9k | return ret; | 157 | 31.9k | } |
Unexecuted instantiation: vo_gpu.c:mp_cond_init Unexecuted instantiation: vo_image.c:mp_cond_init Unexecuted instantiation: vo_lavc.c:mp_cond_init Unexecuted instantiation: vo_libmpv.c:mp_cond_init Unexecuted instantiation: vo_null.c:mp_cond_init Unexecuted instantiation: vo_tct.c:mp_cond_init Unexecuted instantiation: vo_kitty.c:mp_cond_init Unexecuted instantiation: win_state.c:mp_cond_init Unexecuted instantiation: vo_gpu_next.c:mp_cond_init Unexecuted instantiation: libmpv_gpu_next.c:mp_cond_init Unexecuted instantiation: timer.c:mp_cond_init Unexecuted instantiation: ta.c:mp_cond_init Unexecuted instantiation: threads-posix.c:mp_cond_init Unexecuted instantiation: ipc-unix.c:mp_cond_init Unexecuted instantiation: terminal-unix.c:mp_cond_init Unexecuted instantiation: filter_regex.c:mp_cond_init Unexecuted instantiation: als-linux.c:mp_cond_init Unexecuted instantiation: path-unix.c:mp_cond_init Unexecuted instantiation: stream_dvb.c:mp_cond_init Unexecuted instantiation: common.c:mp_cond_init Unexecuted instantiation: formats.c:mp_cond_init Unexecuted instantiation: libmpv_gl.c:mp_cond_init Unexecuted instantiation: ra_gl.c:mp_cond_init |
158 | | |
159 | | static inline int mp_cond_destroy(mp_cond *cond) |
160 | 1.35M | { |
161 | 1.35M | mp_assert(cond); |
162 | 1.35M | return pthread_cond_destroy(&cond->cond); |
163 | 1.35M | } Unexecuted instantiation: ao_lavc.c:mp_cond_destroy Line | Count | Source | 160 | 30.0k | { | 161 | 30.0k | mp_assert(cond); | 162 | 30.0k | return pthread_cond_destroy(&cond->cond); | 163 | 30.0k | } |
Unexecuted instantiation: av_log.c:mp_cond_destroy Unexecuted instantiation: encode_lavc.c:mp_cond_destroy Line | Count | Source | 160 | 11.6k | { | 161 | 11.6k | mp_assert(cond); | 162 | 11.6k | return pthread_cond_destroy(&cond->cond); | 163 | 11.6k | } |
Unexecuted instantiation: stats.c:mp_cond_destroy Line | Count | Source | 160 | 360k | { | 161 | 360k | mp_assert(cond); | 162 | 360k | return pthread_cond_destroy(&cond->cond); | 163 | 360k | } |
Unexecuted instantiation: demux_lavf.c:mp_cond_destroy Unexecuted instantiation: demux_mkv_timeline.c:mp_cond_destroy Unexecuted instantiation: demux_playlist.c:mp_cond_destroy Unexecuted instantiation: packet_pool.c:mp_cond_destroy Unexecuted instantiation: f_async_queue.c:mp_cond_destroy Unexecuted instantiation: f_decoder_wrapper.c:mp_cond_destroy Unexecuted instantiation: f_lavfi.c:mp_cond_destroy Unexecuted instantiation: f_output_chain.c:mp_cond_destroy Unexecuted instantiation: filter.c:mp_cond_destroy Unexecuted instantiation: dnd.c:mp_cond_destroy Unexecuted instantiation: input.c:mp_cond_destroy dispatch.c:mp_cond_destroy Line | Count | Source | 160 | 48.3k | { | 161 | 48.3k | mp_assert(cond); | 162 | 48.3k | return pthread_cond_destroy(&cond->cond); | 163 | 48.3k | } |
Unexecuted instantiation: rendezvous.c:mp_cond_destroy thread_pool.c:mp_cond_destroy Line | Count | Source | 160 | 11.6k | { | 161 | 11.6k | mp_assert(cond); | 162 | 11.6k | return pthread_cond_destroy(&cond->cond); | 163 | 11.6k | } |
thread_tools.c:mp_cond_destroy Line | Count | Source | 160 | 821k | { | 161 | 821k | mp_assert(cond); | 162 | 821k | return pthread_cond_destroy(&cond->cond); | 163 | 821k | } |
Unexecuted instantiation: m_config_core.c:mp_cond_destroy Unexecuted instantiation: m_config_frontend.c:mp_cond_destroy Unexecuted instantiation: options.c:mp_cond_destroy Unexecuted instantiation: audio.c:mp_cond_destroy Line | Count | Source | 160 | 35.0k | { | 161 | 35.0k | mp_assert(cond); | 162 | 35.0k | return pthread_cond_destroy(&cond->cond); | 163 | 35.0k | } |
Unexecuted instantiation: command.c:mp_cond_destroy Unexecuted instantiation: configfiles.c:mp_cond_destroy Unexecuted instantiation: discnav.c:mp_cond_destroy Unexecuted instantiation: external_files.c:mp_cond_destroy Unexecuted instantiation: loadfile.c:mp_cond_destroy Unexecuted instantiation: main.c:mp_cond_destroy Unexecuted instantiation: misc.c:mp_cond_destroy Unexecuted instantiation: osd.c:mp_cond_destroy Unexecuted instantiation: playloop.c:mp_cond_destroy Unexecuted instantiation: screenshot.c:mp_cond_destroy Unexecuted instantiation: scripting.c:mp_cond_destroy Unexecuted instantiation: sub.c:mp_cond_destroy Unexecuted instantiation: video.c:mp_cond_destroy Unexecuted instantiation: clipboard.c:mp_cond_destroy Unexecuted instantiation: clipboard-vo.c:mp_cond_destroy Unexecuted instantiation: stream.c:mp_cond_destroy Unexecuted instantiation: stream_cb.c:mp_cond_destroy Unexecuted instantiation: stream_file.c:mp_cond_destroy Unexecuted instantiation: stream_lavf.c:mp_cond_destroy Unexecuted instantiation: stream_mpv.c:mp_cond_destroy Unexecuted instantiation: dec_sub.c:mp_cond_destroy Unexecuted instantiation: filter_sdh.c:mp_cond_destroy Unexecuted instantiation: lavc_conv.c:mp_cond_destroy Unexecuted instantiation: osd_libass.c:mp_cond_destroy Unexecuted instantiation: sd_ass.c:mp_cond_destroy Unexecuted instantiation: sd_lavc.c:mp_cond_destroy Unexecuted instantiation: vd_lavc.c:mp_cond_destroy Unexecuted instantiation: vf_sub.c:mp_cond_destroy Unexecuted instantiation: hwdec.c:mp_cond_destroy Unexecuted instantiation: mp_image.c:mp_cond_destroy Unexecuted instantiation: mp_image_pool.c:mp_cond_destroy Unexecuted instantiation: aspect.c:mp_cond_destroy Unexecuted instantiation: dr_helper.c:mp_cond_destroy Unexecuted instantiation: terminal_swapchain.c:mp_cond_destroy Unexecuted instantiation: context.c:mp_cond_destroy Unexecuted instantiation: error_diffusion.c:mp_cond_destroy Unexecuted instantiation: libmpv_gpu.c:mp_cond_destroy Unexecuted instantiation: shader_cache.c:mp_cond_destroy Unexecuted instantiation: spirv.c:mp_cond_destroy Unexecuted instantiation: user_shaders.c:mp_cond_destroy Unexecuted instantiation: utils.c:mp_cond_destroy Unexecuted instantiation: video_shaders.c:mp_cond_destroy Unexecuted instantiation: libmpv_sw.c:mp_cond_destroy Line | Count | Source | 160 | 31.9k | { | 161 | 31.9k | mp_assert(cond); | 162 | 31.9k | return pthread_cond_destroy(&cond->cond); | 163 | 31.9k | } |
Unexecuted instantiation: vo_gpu.c:mp_cond_destroy Unexecuted instantiation: vo_image.c:mp_cond_destroy Unexecuted instantiation: vo_lavc.c:mp_cond_destroy Unexecuted instantiation: vo_libmpv.c:mp_cond_destroy Unexecuted instantiation: vo_null.c:mp_cond_destroy Unexecuted instantiation: vo_tct.c:mp_cond_destroy Unexecuted instantiation: vo_kitty.c:mp_cond_destroy Unexecuted instantiation: win_state.c:mp_cond_destroy Unexecuted instantiation: vo_gpu_next.c:mp_cond_destroy Unexecuted instantiation: libmpv_gpu_next.c:mp_cond_destroy Unexecuted instantiation: timer.c:mp_cond_destroy Unexecuted instantiation: ta.c:mp_cond_destroy Unexecuted instantiation: threads-posix.c:mp_cond_destroy Unexecuted instantiation: ipc-unix.c:mp_cond_destroy Unexecuted instantiation: terminal-unix.c:mp_cond_destroy Unexecuted instantiation: filter_regex.c:mp_cond_destroy Unexecuted instantiation: als-linux.c:mp_cond_destroy Unexecuted instantiation: path-unix.c:mp_cond_destroy Unexecuted instantiation: stream_dvb.c:mp_cond_destroy Unexecuted instantiation: common.c:mp_cond_destroy Unexecuted instantiation: formats.c:mp_cond_destroy Unexecuted instantiation: libmpv_gl.c:mp_cond_destroy Unexecuted instantiation: ra_gl.c:mp_cond_destroy |
164 | | |
165 | | static inline int mp_cond_broadcast(mp_cond *cond) |
166 | 47.7M | { |
167 | 47.7M | mp_assert(cond); |
168 | 47.7M | return pthread_cond_broadcast(&cond->cond); |
169 | 47.7M | } Unexecuted instantiation: ao_lavc.c:mp_cond_broadcast buffer.c:mp_cond_broadcast Line | Count | Source | 166 | 1.10M | { | 167 | 1.10M | mp_assert(cond); | 168 | 1.10M | return pthread_cond_broadcast(&cond->cond); | 169 | 1.10M | } |
Unexecuted instantiation: av_log.c:mp_cond_broadcast Unexecuted instantiation: encode_lavc.c:mp_cond_broadcast Unexecuted instantiation: msg.c:mp_cond_broadcast Unexecuted instantiation: stats.c:mp_cond_broadcast Unexecuted instantiation: demux.c:mp_cond_broadcast Unexecuted instantiation: demux_lavf.c:mp_cond_broadcast Unexecuted instantiation: demux_mkv_timeline.c:mp_cond_broadcast Unexecuted instantiation: demux_playlist.c:mp_cond_broadcast Unexecuted instantiation: packet_pool.c:mp_cond_broadcast Unexecuted instantiation: f_async_queue.c:mp_cond_broadcast Unexecuted instantiation: f_decoder_wrapper.c:mp_cond_broadcast Unexecuted instantiation: f_lavfi.c:mp_cond_broadcast Unexecuted instantiation: f_output_chain.c:mp_cond_broadcast Unexecuted instantiation: filter.c:mp_cond_broadcast Unexecuted instantiation: dnd.c:mp_cond_broadcast Unexecuted instantiation: input.c:mp_cond_broadcast dispatch.c:mp_cond_broadcast Line | Count | Source | 166 | 37.8M | { | 167 | 37.8M | mp_assert(cond); | 168 | 37.8M | return pthread_cond_broadcast(&cond->cond); | 169 | 37.8M | } |
rendezvous.c:mp_cond_broadcast Line | Count | Source | 166 | 31.9k | { | 167 | 31.9k | mp_assert(cond); | 168 | 31.9k | return pthread_cond_broadcast(&cond->cond); | 169 | 31.9k | } |
thread_pool.c:mp_cond_broadcast Line | Count | Source | 166 | 11.6k | { | 167 | 11.6k | mp_assert(cond); | 168 | 11.6k | return pthread_cond_broadcast(&cond->cond); | 169 | 11.6k | } |
thread_tools.c:mp_cond_broadcast Line | Count | Source | 166 | 72.8k | { | 167 | 72.8k | mp_assert(cond); | 168 | 72.8k | return pthread_cond_broadcast(&cond->cond); | 169 | 72.8k | } |
Unexecuted instantiation: m_config_core.c:mp_cond_broadcast Unexecuted instantiation: m_config_frontend.c:mp_cond_broadcast Unexecuted instantiation: options.c:mp_cond_broadcast Unexecuted instantiation: audio.c:mp_cond_broadcast client.c:mp_cond_broadcast Line | Count | Source | 166 | 5.49M | { | 167 | 5.49M | mp_assert(cond); | 168 | 5.49M | return pthread_cond_broadcast(&cond->cond); | 169 | 5.49M | } |
Unexecuted instantiation: command.c:mp_cond_broadcast Unexecuted instantiation: configfiles.c:mp_cond_broadcast Unexecuted instantiation: discnav.c:mp_cond_broadcast Unexecuted instantiation: external_files.c:mp_cond_broadcast Unexecuted instantiation: loadfile.c:mp_cond_broadcast Unexecuted instantiation: main.c:mp_cond_broadcast Unexecuted instantiation: misc.c:mp_cond_broadcast Unexecuted instantiation: osd.c:mp_cond_broadcast Unexecuted instantiation: playloop.c:mp_cond_broadcast Unexecuted instantiation: screenshot.c:mp_cond_broadcast Unexecuted instantiation: scripting.c:mp_cond_broadcast Unexecuted instantiation: sub.c:mp_cond_broadcast Unexecuted instantiation: video.c:mp_cond_broadcast Unexecuted instantiation: clipboard.c:mp_cond_broadcast Unexecuted instantiation: clipboard-vo.c:mp_cond_broadcast Unexecuted instantiation: stream.c:mp_cond_broadcast Unexecuted instantiation: stream_cb.c:mp_cond_broadcast Unexecuted instantiation: stream_file.c:mp_cond_broadcast Unexecuted instantiation: stream_lavf.c:mp_cond_broadcast Unexecuted instantiation: stream_mpv.c:mp_cond_broadcast Unexecuted instantiation: dec_sub.c:mp_cond_broadcast Unexecuted instantiation: filter_sdh.c:mp_cond_broadcast Unexecuted instantiation: lavc_conv.c:mp_cond_broadcast Unexecuted instantiation: osd_libass.c:mp_cond_broadcast Unexecuted instantiation: sd_ass.c:mp_cond_broadcast Unexecuted instantiation: sd_lavc.c:mp_cond_broadcast Unexecuted instantiation: vd_lavc.c:mp_cond_broadcast Unexecuted instantiation: vf_sub.c:mp_cond_broadcast Unexecuted instantiation: hwdec.c:mp_cond_broadcast Unexecuted instantiation: mp_image.c:mp_cond_broadcast Unexecuted instantiation: mp_image_pool.c:mp_cond_broadcast Unexecuted instantiation: aspect.c:mp_cond_broadcast Unexecuted instantiation: dr_helper.c:mp_cond_broadcast Unexecuted instantiation: terminal_swapchain.c:mp_cond_broadcast Unexecuted instantiation: context.c:mp_cond_broadcast Unexecuted instantiation: error_diffusion.c:mp_cond_broadcast Unexecuted instantiation: libmpv_gpu.c:mp_cond_broadcast Unexecuted instantiation: shader_cache.c:mp_cond_broadcast Unexecuted instantiation: spirv.c:mp_cond_broadcast Unexecuted instantiation: user_shaders.c:mp_cond_broadcast Unexecuted instantiation: utils.c:mp_cond_broadcast Unexecuted instantiation: video_shaders.c:mp_cond_broadcast Unexecuted instantiation: libmpv_sw.c:mp_cond_broadcast Line | Count | Source | 166 | 3.13M | { | 167 | 3.13M | mp_assert(cond); | 168 | 3.13M | return pthread_cond_broadcast(&cond->cond); | 169 | 3.13M | } |
Unexecuted instantiation: vo_gpu.c:mp_cond_broadcast Unexecuted instantiation: vo_image.c:mp_cond_broadcast Unexecuted instantiation: vo_lavc.c:mp_cond_broadcast Unexecuted instantiation: vo_libmpv.c:mp_cond_broadcast Unexecuted instantiation: vo_null.c:mp_cond_broadcast Unexecuted instantiation: vo_tct.c:mp_cond_broadcast Unexecuted instantiation: vo_kitty.c:mp_cond_broadcast Unexecuted instantiation: win_state.c:mp_cond_broadcast Unexecuted instantiation: vo_gpu_next.c:mp_cond_broadcast Unexecuted instantiation: libmpv_gpu_next.c:mp_cond_broadcast Unexecuted instantiation: timer.c:mp_cond_broadcast Unexecuted instantiation: ta.c:mp_cond_broadcast Unexecuted instantiation: threads-posix.c:mp_cond_broadcast Unexecuted instantiation: ipc-unix.c:mp_cond_broadcast Unexecuted instantiation: terminal-unix.c:mp_cond_broadcast Unexecuted instantiation: filter_regex.c:mp_cond_broadcast Unexecuted instantiation: als-linux.c:mp_cond_broadcast Unexecuted instantiation: path-unix.c:mp_cond_broadcast Unexecuted instantiation: stream_dvb.c:mp_cond_broadcast Unexecuted instantiation: common.c:mp_cond_broadcast Unexecuted instantiation: formats.c:mp_cond_broadcast Unexecuted instantiation: libmpv_gl.c:mp_cond_broadcast Unexecuted instantiation: ra_gl.c:mp_cond_broadcast |
170 | | |
171 | | static inline int mp_cond_signal(mp_cond *cond) |
172 | 52.8M | { |
173 | 52.8M | mp_assert(cond); |
174 | 52.8M | return pthread_cond_signal(&cond->cond); |
175 | 52.8M | } Unexecuted instantiation: ao_lavc.c:mp_cond_signal Unexecuted instantiation: buffer.c:mp_cond_signal Unexecuted instantiation: av_log.c:mp_cond_signal Unexecuted instantiation: encode_lavc.c:mp_cond_signal Unexecuted instantiation: msg.c:mp_cond_signal Unexecuted instantiation: stats.c:mp_cond_signal Line | Count | Source | 172 | 52.1M | { | 173 | 52.1M | mp_assert(cond); | 174 | 52.1M | return pthread_cond_signal(&cond->cond); | 175 | 52.1M | } |
Unexecuted instantiation: demux_lavf.c:mp_cond_signal Unexecuted instantiation: demux_mkv_timeline.c:mp_cond_signal Unexecuted instantiation: demux_playlist.c:mp_cond_signal Unexecuted instantiation: packet_pool.c:mp_cond_signal Unexecuted instantiation: f_async_queue.c:mp_cond_signal Unexecuted instantiation: f_decoder_wrapper.c:mp_cond_signal Unexecuted instantiation: f_lavfi.c:mp_cond_signal Unexecuted instantiation: f_output_chain.c:mp_cond_signal Unexecuted instantiation: filter.c:mp_cond_signal Unexecuted instantiation: dnd.c:mp_cond_signal Unexecuted instantiation: input.c:mp_cond_signal Unexecuted instantiation: dispatch.c:mp_cond_signal Unexecuted instantiation: rendezvous.c:mp_cond_signal thread_pool.c:mp_cond_signal Line | Count | Source | 172 | 166k | { | 173 | 166k | mp_assert(cond); | 174 | 166k | return pthread_cond_signal(&cond->cond); | 175 | 166k | } |
thread_tools.c:mp_cond_signal Line | Count | Source | 172 | 617k | { | 173 | 617k | mp_assert(cond); | 174 | 617k | return pthread_cond_signal(&cond->cond); | 175 | 617k | } |
Unexecuted instantiation: m_config_core.c:mp_cond_signal Unexecuted instantiation: m_config_frontend.c:mp_cond_signal Unexecuted instantiation: options.c:mp_cond_signal Unexecuted instantiation: audio.c:mp_cond_signal Unexecuted instantiation: client.c:mp_cond_signal Unexecuted instantiation: command.c:mp_cond_signal Unexecuted instantiation: configfiles.c:mp_cond_signal Unexecuted instantiation: discnav.c:mp_cond_signal Unexecuted instantiation: external_files.c:mp_cond_signal Unexecuted instantiation: loadfile.c:mp_cond_signal Unexecuted instantiation: main.c:mp_cond_signal Unexecuted instantiation: misc.c:mp_cond_signal Unexecuted instantiation: osd.c:mp_cond_signal Unexecuted instantiation: playloop.c:mp_cond_signal Unexecuted instantiation: screenshot.c:mp_cond_signal Unexecuted instantiation: scripting.c:mp_cond_signal Unexecuted instantiation: sub.c:mp_cond_signal Unexecuted instantiation: video.c:mp_cond_signal Unexecuted instantiation: clipboard.c:mp_cond_signal Unexecuted instantiation: clipboard-vo.c:mp_cond_signal Unexecuted instantiation: stream.c:mp_cond_signal Unexecuted instantiation: stream_cb.c:mp_cond_signal Unexecuted instantiation: stream_file.c:mp_cond_signal Unexecuted instantiation: stream_lavf.c:mp_cond_signal Unexecuted instantiation: stream_mpv.c:mp_cond_signal Unexecuted instantiation: dec_sub.c:mp_cond_signal Unexecuted instantiation: filter_sdh.c:mp_cond_signal Unexecuted instantiation: lavc_conv.c:mp_cond_signal Unexecuted instantiation: osd_libass.c:mp_cond_signal Unexecuted instantiation: sd_ass.c:mp_cond_signal Unexecuted instantiation: sd_lavc.c:mp_cond_signal Unexecuted instantiation: vd_lavc.c:mp_cond_signal Unexecuted instantiation: vf_sub.c:mp_cond_signal Unexecuted instantiation: hwdec.c:mp_cond_signal Unexecuted instantiation: mp_image.c:mp_cond_signal Unexecuted instantiation: mp_image_pool.c:mp_cond_signal Unexecuted instantiation: aspect.c:mp_cond_signal Unexecuted instantiation: dr_helper.c:mp_cond_signal Unexecuted instantiation: terminal_swapchain.c:mp_cond_signal Unexecuted instantiation: context.c:mp_cond_signal Unexecuted instantiation: error_diffusion.c:mp_cond_signal Unexecuted instantiation: libmpv_gpu.c:mp_cond_signal Unexecuted instantiation: shader_cache.c:mp_cond_signal Unexecuted instantiation: spirv.c:mp_cond_signal Unexecuted instantiation: user_shaders.c:mp_cond_signal Unexecuted instantiation: utils.c:mp_cond_signal Unexecuted instantiation: video_shaders.c:mp_cond_signal Unexecuted instantiation: libmpv_sw.c:mp_cond_signal Unexecuted instantiation: vo.c:mp_cond_signal Unexecuted instantiation: vo_gpu.c:mp_cond_signal Unexecuted instantiation: vo_image.c:mp_cond_signal Unexecuted instantiation: vo_lavc.c:mp_cond_signal Unexecuted instantiation: vo_libmpv.c:mp_cond_signal Unexecuted instantiation: vo_null.c:mp_cond_signal Unexecuted instantiation: vo_tct.c:mp_cond_signal Unexecuted instantiation: vo_kitty.c:mp_cond_signal Unexecuted instantiation: win_state.c:mp_cond_signal Unexecuted instantiation: vo_gpu_next.c:mp_cond_signal Unexecuted instantiation: libmpv_gpu_next.c:mp_cond_signal Unexecuted instantiation: timer.c:mp_cond_signal Unexecuted instantiation: ta.c:mp_cond_signal Unexecuted instantiation: threads-posix.c:mp_cond_signal Unexecuted instantiation: ipc-unix.c:mp_cond_signal Unexecuted instantiation: terminal-unix.c:mp_cond_signal Unexecuted instantiation: filter_regex.c:mp_cond_signal Unexecuted instantiation: als-linux.c:mp_cond_signal Unexecuted instantiation: path-unix.c:mp_cond_signal Unexecuted instantiation: stream_dvb.c:mp_cond_signal Unexecuted instantiation: common.c:mp_cond_signal Unexecuted instantiation: formats.c:mp_cond_signal Unexecuted instantiation: libmpv_gl.c:mp_cond_signal Unexecuted instantiation: ra_gl.c:mp_cond_signal |
176 | | |
177 | | static inline int mp_cond_wait(mp_cond *cond, mp_mutex *mutex) |
178 | 1.56M | { |
179 | 1.56M | mp_assert(cond); |
180 | 1.56M | return pthread_cond_wait(&cond->cond, mutex); |
181 | 1.56M | } Unexecuted instantiation: ao_lavc.c:mp_cond_wait Unexecuted instantiation: buffer.c:mp_cond_wait Unexecuted instantiation: av_log.c:mp_cond_wait Unexecuted instantiation: encode_lavc.c:mp_cond_wait Unexecuted instantiation: msg.c:mp_cond_wait Unexecuted instantiation: stats.c:mp_cond_wait Unexecuted instantiation: demux.c:mp_cond_wait Unexecuted instantiation: demux_lavf.c:mp_cond_wait Unexecuted instantiation: demux_mkv_timeline.c:mp_cond_wait Unexecuted instantiation: demux_playlist.c:mp_cond_wait Unexecuted instantiation: packet_pool.c:mp_cond_wait Unexecuted instantiation: f_async_queue.c:mp_cond_wait Unexecuted instantiation: f_decoder_wrapper.c:mp_cond_wait Unexecuted instantiation: f_lavfi.c:mp_cond_wait Unexecuted instantiation: f_output_chain.c:mp_cond_wait Unexecuted instantiation: filter.c:mp_cond_wait Unexecuted instantiation: dnd.c:mp_cond_wait Unexecuted instantiation: input.c:mp_cond_wait Line | Count | Source | 178 | 1.22M | { | 179 | 1.22M | mp_assert(cond); | 180 | 1.22M | return pthread_cond_wait(&cond->cond, mutex); | 181 | 1.22M | } |
rendezvous.c:mp_cond_wait Line | Count | Source | 178 | 31.9k | { | 179 | 31.9k | mp_assert(cond); | 180 | 31.9k | return pthread_cond_wait(&cond->cond, mutex); | 181 | 31.9k | } |
thread_pool.c:mp_cond_wait Line | Count | Source | 178 | 141k | { | 179 | 141k | mp_assert(cond); | 180 | 141k | return pthread_cond_wait(&cond->cond, mutex); | 181 | 141k | } |
thread_tools.c:mp_cond_wait Line | Count | Source | 178 | 152k | { | 179 | 152k | mp_assert(cond); | 180 | 152k | return pthread_cond_wait(&cond->cond, mutex); | 181 | 152k | } |
Unexecuted instantiation: m_config_core.c:mp_cond_wait Unexecuted instantiation: m_config_frontend.c:mp_cond_wait Unexecuted instantiation: options.c:mp_cond_wait Unexecuted instantiation: audio.c:mp_cond_wait Unexecuted instantiation: client.c:mp_cond_wait Unexecuted instantiation: command.c:mp_cond_wait Unexecuted instantiation: configfiles.c:mp_cond_wait Unexecuted instantiation: discnav.c:mp_cond_wait Unexecuted instantiation: external_files.c:mp_cond_wait Unexecuted instantiation: loadfile.c:mp_cond_wait Unexecuted instantiation: main.c:mp_cond_wait Unexecuted instantiation: misc.c:mp_cond_wait Unexecuted instantiation: osd.c:mp_cond_wait Unexecuted instantiation: playloop.c:mp_cond_wait Unexecuted instantiation: screenshot.c:mp_cond_wait Unexecuted instantiation: scripting.c:mp_cond_wait Unexecuted instantiation: sub.c:mp_cond_wait Unexecuted instantiation: video.c:mp_cond_wait Unexecuted instantiation: clipboard.c:mp_cond_wait Unexecuted instantiation: clipboard-vo.c:mp_cond_wait Unexecuted instantiation: stream.c:mp_cond_wait Unexecuted instantiation: stream_cb.c:mp_cond_wait Unexecuted instantiation: stream_file.c:mp_cond_wait Unexecuted instantiation: stream_lavf.c:mp_cond_wait Unexecuted instantiation: stream_mpv.c:mp_cond_wait Unexecuted instantiation: dec_sub.c:mp_cond_wait Unexecuted instantiation: filter_sdh.c:mp_cond_wait Unexecuted instantiation: lavc_conv.c:mp_cond_wait Unexecuted instantiation: osd_libass.c:mp_cond_wait Unexecuted instantiation: sd_ass.c:mp_cond_wait Unexecuted instantiation: sd_lavc.c:mp_cond_wait Unexecuted instantiation: vd_lavc.c:mp_cond_wait Unexecuted instantiation: vf_sub.c:mp_cond_wait Unexecuted instantiation: hwdec.c:mp_cond_wait Unexecuted instantiation: mp_image.c:mp_cond_wait Unexecuted instantiation: mp_image_pool.c:mp_cond_wait Unexecuted instantiation: aspect.c:mp_cond_wait Unexecuted instantiation: dr_helper.c:mp_cond_wait Unexecuted instantiation: terminal_swapchain.c:mp_cond_wait Unexecuted instantiation: context.c:mp_cond_wait Unexecuted instantiation: error_diffusion.c:mp_cond_wait Unexecuted instantiation: libmpv_gpu.c:mp_cond_wait Unexecuted instantiation: shader_cache.c:mp_cond_wait Unexecuted instantiation: spirv.c:mp_cond_wait Unexecuted instantiation: user_shaders.c:mp_cond_wait Unexecuted instantiation: utils.c:mp_cond_wait Unexecuted instantiation: video_shaders.c:mp_cond_wait Unexecuted instantiation: libmpv_sw.c:mp_cond_wait Line | Count | Source | 178 | 17.4k | { | 179 | 17.4k | mp_assert(cond); | 180 | 17.4k | return pthread_cond_wait(&cond->cond, mutex); | 181 | 17.4k | } |
Unexecuted instantiation: vo_gpu.c:mp_cond_wait Unexecuted instantiation: vo_image.c:mp_cond_wait Unexecuted instantiation: vo_lavc.c:mp_cond_wait Unexecuted instantiation: vo_libmpv.c:mp_cond_wait Unexecuted instantiation: vo_null.c:mp_cond_wait Unexecuted instantiation: vo_tct.c:mp_cond_wait Unexecuted instantiation: vo_kitty.c:mp_cond_wait Unexecuted instantiation: win_state.c:mp_cond_wait Unexecuted instantiation: vo_gpu_next.c:mp_cond_wait Unexecuted instantiation: libmpv_gpu_next.c:mp_cond_wait Unexecuted instantiation: timer.c:mp_cond_wait Unexecuted instantiation: ta.c:mp_cond_wait Unexecuted instantiation: threads-posix.c:mp_cond_wait Unexecuted instantiation: ipc-unix.c:mp_cond_wait Unexecuted instantiation: terminal-unix.c:mp_cond_wait Unexecuted instantiation: filter_regex.c:mp_cond_wait Unexecuted instantiation: als-linux.c:mp_cond_wait Unexecuted instantiation: path-unix.c:mp_cond_wait Unexecuted instantiation: stream_dvb.c:mp_cond_wait Unexecuted instantiation: common.c:mp_cond_wait Unexecuted instantiation: formats.c:mp_cond_wait Unexecuted instantiation: libmpv_gl.c:mp_cond_wait Unexecuted instantiation: ra_gl.c:mp_cond_wait |
182 | | |
183 | | static inline int mp_cond_timedwait(mp_cond *cond, mp_mutex *mutex, int64_t timeout) |
184 | 16.8M | { |
185 | 16.8M | mp_assert(cond); |
186 | | |
187 | 16.8M | timeout = MPMAX(0, timeout); |
188 | | // consider anything above 1000 days as infinity |
189 | 16.8M | if (timeout > MP_TIME_S_TO_NS(1000 * 24 * 60 * 60)) |
190 | 7.58M | return pthread_cond_wait(&cond->cond, mutex); |
191 | | |
192 | 9.31M | struct timespec ts; |
193 | 9.31M | clock_gettime(cond->clk_id, &ts); |
194 | 9.31M | ts.tv_sec += timeout / MP_TIME_S_TO_NS(1); |
195 | 9.31M | ts.tv_nsec += timeout % MP_TIME_S_TO_NS(1); |
196 | 9.31M | if (ts.tv_nsec >= MP_TIME_S_TO_NS(1)) { |
197 | 3.17M | ts.tv_nsec -= MP_TIME_S_TO_NS(1); |
198 | 3.17M | ts.tv_sec++; |
199 | 3.17M | } |
200 | | |
201 | 9.31M | return pthread_cond_timedwait(&cond->cond, mutex, &ts); |
202 | 16.8M | } Unexecuted instantiation: ao_lavc.c:mp_cond_timedwait buffer.c:mp_cond_timedwait Line | Count | Source | 184 | 1.00M | { | 185 | 1.00M | mp_assert(cond); | 186 | | | 187 | 1.00M | timeout = MPMAX(0, timeout); | 188 | | // consider anything above 1000 days as infinity | 189 | 1.00M | if (timeout > MP_TIME_S_TO_NS(1000 * 24 * 60 * 60)) | 190 | 951k | return pthread_cond_wait(&cond->cond, mutex); | 191 | | | 192 | 49.8k | struct timespec ts; | 193 | 49.8k | clock_gettime(cond->clk_id, &ts); | 194 | 49.8k | ts.tv_sec += timeout / MP_TIME_S_TO_NS(1); | 195 | 49.8k | ts.tv_nsec += timeout % MP_TIME_S_TO_NS(1); | 196 | 49.8k | if (ts.tv_nsec >= MP_TIME_S_TO_NS(1)) { | 197 | 2.22k | ts.tv_nsec -= MP_TIME_S_TO_NS(1); | 198 | 2.22k | ts.tv_sec++; | 199 | 2.22k | } | 200 | | | 201 | 49.8k | return pthread_cond_timedwait(&cond->cond, mutex, &ts); | 202 | 1.00M | } |
Unexecuted instantiation: av_log.c:mp_cond_timedwait Unexecuted instantiation: encode_lavc.c:mp_cond_timedwait Unexecuted instantiation: msg.c:mp_cond_timedwait Unexecuted instantiation: stats.c:mp_cond_timedwait demux.c:mp_cond_timedwait Line | Count | Source | 184 | 6.49M | { | 185 | 6.49M | mp_assert(cond); | 186 | | | 187 | 6.49M | timeout = MPMAX(0, timeout); | 188 | | // consider anything above 1000 days as infinity | 189 | 6.49M | if (timeout > MP_TIME_S_TO_NS(1000 * 24 * 60 * 60)) | 190 | 6.49M | return pthread_cond_wait(&cond->cond, mutex); | 191 | | | 192 | 0 | struct timespec ts; | 193 | 0 | clock_gettime(cond->clk_id, &ts); | 194 | 0 | ts.tv_sec += timeout / MP_TIME_S_TO_NS(1); | 195 | 0 | ts.tv_nsec += timeout % MP_TIME_S_TO_NS(1); | 196 | 0 | if (ts.tv_nsec >= MP_TIME_S_TO_NS(1)) { | 197 | 0 | ts.tv_nsec -= MP_TIME_S_TO_NS(1); | 198 | 0 | ts.tv_sec++; | 199 | 0 | } | 200 | |
| 201 | 0 | return pthread_cond_timedwait(&cond->cond, mutex, &ts); | 202 | 6.49M | } |
Unexecuted instantiation: demux_lavf.c:mp_cond_timedwait Unexecuted instantiation: demux_mkv_timeline.c:mp_cond_timedwait Unexecuted instantiation: demux_playlist.c:mp_cond_timedwait Unexecuted instantiation: packet_pool.c:mp_cond_timedwait Unexecuted instantiation: f_async_queue.c:mp_cond_timedwait Unexecuted instantiation: f_decoder_wrapper.c:mp_cond_timedwait Unexecuted instantiation: f_lavfi.c:mp_cond_timedwait Unexecuted instantiation: f_output_chain.c:mp_cond_timedwait Unexecuted instantiation: filter.c:mp_cond_timedwait Unexecuted instantiation: dnd.c:mp_cond_timedwait Unexecuted instantiation: input.c:mp_cond_timedwait dispatch.c:mp_cond_timedwait Line | Count | Source | 184 | 989k | { | 185 | 989k | mp_assert(cond); | 186 | | | 187 | 989k | timeout = MPMAX(0, timeout); | 188 | | // consider anything above 1000 days as infinity | 189 | 989k | if (timeout > MP_TIME_S_TO_NS(1000 * 24 * 60 * 60)) | 190 | 24.0k | return pthread_cond_wait(&cond->cond, mutex); | 191 | | | 192 | 965k | struct timespec ts; | 193 | 965k | clock_gettime(cond->clk_id, &ts); | 194 | 965k | ts.tv_sec += timeout / MP_TIME_S_TO_NS(1); | 195 | 965k | ts.tv_nsec += timeout % MP_TIME_S_TO_NS(1); | 196 | 965k | if (ts.tv_nsec >= MP_TIME_S_TO_NS(1)) { | 197 | 221k | ts.tv_nsec -= MP_TIME_S_TO_NS(1); | 198 | 221k | ts.tv_sec++; | 199 | 221k | } | 200 | | | 201 | 965k | return pthread_cond_timedwait(&cond->cond, mutex, &ts); | 202 | 989k | } |
Unexecuted instantiation: rendezvous.c:mp_cond_timedwait thread_pool.c:mp_cond_timedwait Line | Count | Source | 184 | 25.0k | { | 185 | 25.0k | mp_assert(cond); | 186 | | | 187 | 25.0k | timeout = MPMAX(0, timeout); | 188 | | // consider anything above 1000 days as infinity | 189 | 25.0k | if (timeout > MP_TIME_S_TO_NS(1000 * 24 * 60 * 60)) | 190 | 0 | return pthread_cond_wait(&cond->cond, mutex); | 191 | | | 192 | 25.0k | struct timespec ts; | 193 | 25.0k | clock_gettime(cond->clk_id, &ts); | 194 | 25.0k | ts.tv_sec += timeout / MP_TIME_S_TO_NS(1); | 195 | 25.0k | ts.tv_nsec += timeout % MP_TIME_S_TO_NS(1); | 196 | 25.0k | if (ts.tv_nsec >= MP_TIME_S_TO_NS(1)) { | 197 | 25.0k | ts.tv_nsec -= MP_TIME_S_TO_NS(1); | 198 | 25.0k | ts.tv_sec++; | 199 | 25.0k | } | 200 | | | 201 | 25.0k | return pthread_cond_timedwait(&cond->cond, mutex, &ts); | 202 | 25.0k | } |
Unexecuted instantiation: thread_tools.c:mp_cond_timedwait Unexecuted instantiation: m_config_core.c:mp_cond_timedwait Unexecuted instantiation: m_config_frontend.c:mp_cond_timedwait Unexecuted instantiation: options.c:mp_cond_timedwait Unexecuted instantiation: audio.c:mp_cond_timedwait client.c:mp_cond_timedwait Line | Count | Source | 184 | 5.46M | { | 185 | 5.46M | mp_assert(cond); | 186 | | | 187 | 5.46M | timeout = MPMAX(0, timeout); | 188 | | // consider anything above 1000 days as infinity | 189 | 5.46M | if (timeout > MP_TIME_S_TO_NS(1000 * 24 * 60 * 60)) | 190 | 117k | return pthread_cond_wait(&cond->cond, mutex); | 191 | | | 192 | 5.34M | struct timespec ts; | 193 | 5.34M | clock_gettime(cond->clk_id, &ts); | 194 | 5.34M | ts.tv_sec += timeout / MP_TIME_S_TO_NS(1); | 195 | 5.34M | ts.tv_nsec += timeout % MP_TIME_S_TO_NS(1); | 196 | 5.34M | if (ts.tv_nsec >= MP_TIME_S_TO_NS(1)) { | 197 | 825 | ts.tv_nsec -= MP_TIME_S_TO_NS(1); | 198 | 825 | ts.tv_sec++; | 199 | 825 | } | 200 | | | 201 | 5.34M | return pthread_cond_timedwait(&cond->cond, mutex, &ts); | 202 | 5.46M | } |
Unexecuted instantiation: command.c:mp_cond_timedwait Unexecuted instantiation: configfiles.c:mp_cond_timedwait Unexecuted instantiation: discnav.c:mp_cond_timedwait Unexecuted instantiation: external_files.c:mp_cond_timedwait Unexecuted instantiation: loadfile.c:mp_cond_timedwait Unexecuted instantiation: main.c:mp_cond_timedwait Unexecuted instantiation: misc.c:mp_cond_timedwait Unexecuted instantiation: osd.c:mp_cond_timedwait Unexecuted instantiation: playloop.c:mp_cond_timedwait Unexecuted instantiation: screenshot.c:mp_cond_timedwait Unexecuted instantiation: scripting.c:mp_cond_timedwait Unexecuted instantiation: sub.c:mp_cond_timedwait Unexecuted instantiation: video.c:mp_cond_timedwait Unexecuted instantiation: clipboard.c:mp_cond_timedwait Unexecuted instantiation: clipboard-vo.c:mp_cond_timedwait Unexecuted instantiation: stream.c:mp_cond_timedwait Unexecuted instantiation: stream_cb.c:mp_cond_timedwait Unexecuted instantiation: stream_file.c:mp_cond_timedwait Unexecuted instantiation: stream_lavf.c:mp_cond_timedwait Unexecuted instantiation: stream_mpv.c:mp_cond_timedwait Unexecuted instantiation: dec_sub.c:mp_cond_timedwait Unexecuted instantiation: filter_sdh.c:mp_cond_timedwait Unexecuted instantiation: lavc_conv.c:mp_cond_timedwait Unexecuted instantiation: osd_libass.c:mp_cond_timedwait Unexecuted instantiation: sd_ass.c:mp_cond_timedwait Unexecuted instantiation: sd_lavc.c:mp_cond_timedwait Unexecuted instantiation: vd_lavc.c:mp_cond_timedwait Unexecuted instantiation: vf_sub.c:mp_cond_timedwait Unexecuted instantiation: hwdec.c:mp_cond_timedwait Unexecuted instantiation: mp_image.c:mp_cond_timedwait Unexecuted instantiation: mp_image_pool.c:mp_cond_timedwait Unexecuted instantiation: aspect.c:mp_cond_timedwait Unexecuted instantiation: dr_helper.c:mp_cond_timedwait Unexecuted instantiation: terminal_swapchain.c:mp_cond_timedwait Unexecuted instantiation: context.c:mp_cond_timedwait Unexecuted instantiation: error_diffusion.c:mp_cond_timedwait Unexecuted instantiation: libmpv_gpu.c:mp_cond_timedwait Unexecuted instantiation: shader_cache.c:mp_cond_timedwait Unexecuted instantiation: spirv.c:mp_cond_timedwait Unexecuted instantiation: user_shaders.c:mp_cond_timedwait Unexecuted instantiation: utils.c:mp_cond_timedwait Unexecuted instantiation: video_shaders.c:mp_cond_timedwait Unexecuted instantiation: libmpv_sw.c:mp_cond_timedwait Line | Count | Source | 184 | 2.92M | { | 185 | 2.92M | mp_assert(cond); | 186 | | | 187 | 2.92M | timeout = MPMAX(0, timeout); | 188 | | // consider anything above 1000 days as infinity | 189 | 2.92M | if (timeout > MP_TIME_S_TO_NS(1000 * 24 * 60 * 60)) | 190 | 0 | return pthread_cond_wait(&cond->cond, mutex); | 191 | | | 192 | 2.92M | struct timespec ts; | 193 | 2.92M | clock_gettime(cond->clk_id, &ts); | 194 | 2.92M | ts.tv_sec += timeout / MP_TIME_S_TO_NS(1); | 195 | 2.92M | ts.tv_nsec += timeout % MP_TIME_S_TO_NS(1); | 196 | 2.92M | if (ts.tv_nsec >= MP_TIME_S_TO_NS(1)) { | 197 | 2.92M | ts.tv_nsec -= MP_TIME_S_TO_NS(1); | 198 | 2.92M | ts.tv_sec++; | 199 | 2.92M | } | 200 | | | 201 | 2.92M | return pthread_cond_timedwait(&cond->cond, mutex, &ts); | 202 | 2.92M | } |
Unexecuted instantiation: vo_gpu.c:mp_cond_timedwait Unexecuted instantiation: vo_image.c:mp_cond_timedwait Unexecuted instantiation: vo_lavc.c:mp_cond_timedwait Unexecuted instantiation: vo_libmpv.c:mp_cond_timedwait Unexecuted instantiation: vo_null.c:mp_cond_timedwait Unexecuted instantiation: vo_tct.c:mp_cond_timedwait Unexecuted instantiation: vo_kitty.c:mp_cond_timedwait Unexecuted instantiation: win_state.c:mp_cond_timedwait Unexecuted instantiation: vo_gpu_next.c:mp_cond_timedwait Unexecuted instantiation: libmpv_gpu_next.c:mp_cond_timedwait Unexecuted instantiation: timer.c:mp_cond_timedwait Unexecuted instantiation: ta.c:mp_cond_timedwait Unexecuted instantiation: threads-posix.c:mp_cond_timedwait Unexecuted instantiation: ipc-unix.c:mp_cond_timedwait Unexecuted instantiation: terminal-unix.c:mp_cond_timedwait Unexecuted instantiation: filter_regex.c:mp_cond_timedwait Unexecuted instantiation: als-linux.c:mp_cond_timedwait Unexecuted instantiation: path-unix.c:mp_cond_timedwait Unexecuted instantiation: stream_dvb.c:mp_cond_timedwait Unexecuted instantiation: common.c:mp_cond_timedwait Unexecuted instantiation: formats.c:mp_cond_timedwait Unexecuted instantiation: libmpv_gl.c:mp_cond_timedwait Unexecuted instantiation: ra_gl.c:mp_cond_timedwait |
203 | | |
204 | | static inline int mp_cond_timedwait_until(mp_cond *cond, mp_mutex *mutex, int64_t until) |
205 | 15.8M | { |
206 | 15.8M | return mp_cond_timedwait(cond, mutex, until - mp_time_ns()); |
207 | 15.8M | } Unexecuted instantiation: ao_lavc.c:mp_cond_timedwait_until Unexecuted instantiation: buffer.c:mp_cond_timedwait_until Unexecuted instantiation: av_log.c:mp_cond_timedwait_until Unexecuted instantiation: encode_lavc.c:mp_cond_timedwait_until Unexecuted instantiation: msg.c:mp_cond_timedwait_until Unexecuted instantiation: stats.c:mp_cond_timedwait_until demux.c:mp_cond_timedwait_until Line | Count | Source | 205 | 6.49M | { | 206 | 6.49M | return mp_cond_timedwait(cond, mutex, until - mp_time_ns()); | 207 | 6.49M | } |
Unexecuted instantiation: demux_lavf.c:mp_cond_timedwait_until Unexecuted instantiation: demux_mkv_timeline.c:mp_cond_timedwait_until Unexecuted instantiation: demux_playlist.c:mp_cond_timedwait_until Unexecuted instantiation: packet_pool.c:mp_cond_timedwait_until Unexecuted instantiation: f_async_queue.c:mp_cond_timedwait_until Unexecuted instantiation: f_decoder_wrapper.c:mp_cond_timedwait_until Unexecuted instantiation: f_lavfi.c:mp_cond_timedwait_until Unexecuted instantiation: f_output_chain.c:mp_cond_timedwait_until Unexecuted instantiation: filter.c:mp_cond_timedwait_until Unexecuted instantiation: dnd.c:mp_cond_timedwait_until Unexecuted instantiation: input.c:mp_cond_timedwait_until dispatch.c:mp_cond_timedwait_until Line | Count | Source | 205 | 989k | { | 206 | 989k | return mp_cond_timedwait(cond, mutex, until - mp_time_ns()); | 207 | 989k | } |
Unexecuted instantiation: rendezvous.c:mp_cond_timedwait_until thread_pool.c:mp_cond_timedwait_until Line | Count | Source | 205 | 25.0k | { | 206 | 25.0k | return mp_cond_timedwait(cond, mutex, until - mp_time_ns()); | 207 | 25.0k | } |
Unexecuted instantiation: thread_tools.c:mp_cond_timedwait_until Unexecuted instantiation: m_config_core.c:mp_cond_timedwait_until Unexecuted instantiation: m_config_frontend.c:mp_cond_timedwait_until Unexecuted instantiation: options.c:mp_cond_timedwait_until Unexecuted instantiation: audio.c:mp_cond_timedwait_until client.c:mp_cond_timedwait_until Line | Count | Source | 205 | 5.46M | { | 206 | 5.46M | return mp_cond_timedwait(cond, mutex, until - mp_time_ns()); | 207 | 5.46M | } |
Unexecuted instantiation: command.c:mp_cond_timedwait_until Unexecuted instantiation: configfiles.c:mp_cond_timedwait_until Unexecuted instantiation: discnav.c:mp_cond_timedwait_until Unexecuted instantiation: external_files.c:mp_cond_timedwait_until Unexecuted instantiation: loadfile.c:mp_cond_timedwait_until Unexecuted instantiation: main.c:mp_cond_timedwait_until Unexecuted instantiation: misc.c:mp_cond_timedwait_until Unexecuted instantiation: osd.c:mp_cond_timedwait_until Unexecuted instantiation: playloop.c:mp_cond_timedwait_until Unexecuted instantiation: screenshot.c:mp_cond_timedwait_until Unexecuted instantiation: scripting.c:mp_cond_timedwait_until Unexecuted instantiation: sub.c:mp_cond_timedwait_until Unexecuted instantiation: video.c:mp_cond_timedwait_until Unexecuted instantiation: clipboard.c:mp_cond_timedwait_until Unexecuted instantiation: clipboard-vo.c:mp_cond_timedwait_until Unexecuted instantiation: stream.c:mp_cond_timedwait_until Unexecuted instantiation: stream_cb.c:mp_cond_timedwait_until Unexecuted instantiation: stream_file.c:mp_cond_timedwait_until Unexecuted instantiation: stream_lavf.c:mp_cond_timedwait_until Unexecuted instantiation: stream_mpv.c:mp_cond_timedwait_until Unexecuted instantiation: dec_sub.c:mp_cond_timedwait_until Unexecuted instantiation: filter_sdh.c:mp_cond_timedwait_until Unexecuted instantiation: lavc_conv.c:mp_cond_timedwait_until Unexecuted instantiation: osd_libass.c:mp_cond_timedwait_until Unexecuted instantiation: sd_ass.c:mp_cond_timedwait_until Unexecuted instantiation: sd_lavc.c:mp_cond_timedwait_until Unexecuted instantiation: vd_lavc.c:mp_cond_timedwait_until Unexecuted instantiation: vf_sub.c:mp_cond_timedwait_until Unexecuted instantiation: hwdec.c:mp_cond_timedwait_until Unexecuted instantiation: mp_image.c:mp_cond_timedwait_until Unexecuted instantiation: mp_image_pool.c:mp_cond_timedwait_until Unexecuted instantiation: aspect.c:mp_cond_timedwait_until Unexecuted instantiation: dr_helper.c:mp_cond_timedwait_until Unexecuted instantiation: terminal_swapchain.c:mp_cond_timedwait_until Unexecuted instantiation: context.c:mp_cond_timedwait_until Unexecuted instantiation: error_diffusion.c:mp_cond_timedwait_until Unexecuted instantiation: libmpv_gpu.c:mp_cond_timedwait_until Unexecuted instantiation: shader_cache.c:mp_cond_timedwait_until Unexecuted instantiation: spirv.c:mp_cond_timedwait_until Unexecuted instantiation: user_shaders.c:mp_cond_timedwait_until Unexecuted instantiation: utils.c:mp_cond_timedwait_until Unexecuted instantiation: video_shaders.c:mp_cond_timedwait_until Unexecuted instantiation: libmpv_sw.c:mp_cond_timedwait_until vo.c:mp_cond_timedwait_until Line | Count | Source | 205 | 2.92M | { | 206 | 2.92M | return mp_cond_timedwait(cond, mutex, until - mp_time_ns()); | 207 | 2.92M | } |
Unexecuted instantiation: vo_gpu.c:mp_cond_timedwait_until Unexecuted instantiation: vo_image.c:mp_cond_timedwait_until Unexecuted instantiation: vo_lavc.c:mp_cond_timedwait_until Unexecuted instantiation: vo_libmpv.c:mp_cond_timedwait_until Unexecuted instantiation: vo_null.c:mp_cond_timedwait_until Unexecuted instantiation: vo_tct.c:mp_cond_timedwait_until Unexecuted instantiation: vo_kitty.c:mp_cond_timedwait_until Unexecuted instantiation: win_state.c:mp_cond_timedwait_until Unexecuted instantiation: vo_gpu_next.c:mp_cond_timedwait_until Unexecuted instantiation: libmpv_gpu_next.c:mp_cond_timedwait_until Unexecuted instantiation: timer.c:mp_cond_timedwait_until Unexecuted instantiation: ta.c:mp_cond_timedwait_until Unexecuted instantiation: threads-posix.c:mp_cond_timedwait_until Unexecuted instantiation: ipc-unix.c:mp_cond_timedwait_until Unexecuted instantiation: terminal-unix.c:mp_cond_timedwait_until Unexecuted instantiation: filter_regex.c:mp_cond_timedwait_until Unexecuted instantiation: als-linux.c:mp_cond_timedwait_until Unexecuted instantiation: path-unix.c:mp_cond_timedwait_until Unexecuted instantiation: stream_dvb.c:mp_cond_timedwait_until Unexecuted instantiation: common.c:mp_cond_timedwait_until Unexecuted instantiation: formats.c:mp_cond_timedwait_until Unexecuted instantiation: libmpv_gl.c:mp_cond_timedwait_until Unexecuted instantiation: ra_gl.c:mp_cond_timedwait_until |
208 | | |
209 | 11.6k | #define mp_exec_once pthread_once |
210 | | |
211 | | #define MP_THREAD_VOID void * |
212 | 101k | #define MP_THREAD_RETURN() return NULL |
213 | | |
214 | 101k | #define mp_thread_create(t, f, a) pthread_create(t, NULL, f, a) |
215 | 101k | #define mp_thread_join(t) pthread_join(t, NULL) |
216 | 0 | #define mp_thread_detach pthread_detach |
217 | 15.7M | #define mp_thread_current_id pthread_self |
218 | 29 | #define mp_thread_id_equal(a, b) ((a) == (b)) |
219 | | #define mp_thread_get_id(thread) (thread) |
220 | | |
221 | | static inline void mp_thread_set_name(const char *name) |
222 | 101k | { |
223 | 101k | #if HAVE_GLIBC_THREAD_NAME |
224 | 101k | if (pthread_setname_np(pthread_self(), name) == ERANGE) { |
225 | 0 | char tname[16] = {0}; // glibc-checked kernel limit |
226 | 0 | strncpy(tname, name, sizeof(tname) - 1); |
227 | 0 | pthread_setname_np(pthread_self(), tname); |
228 | 0 | } |
229 | | #elif HAVE_BSD_THREAD_NAME |
230 | | pthread_set_name_np(pthread_self(), name); |
231 | | #elif HAVE_MAC_THREAD_NAME |
232 | | pthread_setname_np(name); |
233 | | #endif |
234 | 101k | } Unexecuted instantiation: ao_lavc.c:mp_thread_set_name buffer.c:mp_thread_set_name Line | Count | Source | 222 | 15.0k | { | 223 | 15.0k | #if HAVE_GLIBC_THREAD_NAME | 224 | 15.0k | if (pthread_setname_np(pthread_self(), name) == ERANGE) { | 225 | 0 | char tname[16] = {0}; // glibc-checked kernel limit | 226 | 0 | strncpy(tname, name, sizeof(tname) - 1); | 227 | 0 | pthread_setname_np(pthread_self(), tname); | 228 | 0 | } | 229 | | #elif HAVE_BSD_THREAD_NAME | 230 | | pthread_set_name_np(pthread_self(), name); | 231 | | #elif HAVE_MAC_THREAD_NAME | 232 | | pthread_setname_np(name); | 233 | | #endif | 234 | 15.0k | } |
Unexecuted instantiation: av_log.c:mp_thread_set_name Unexecuted instantiation: encode_lavc.c:mp_thread_set_name Unexecuted instantiation: msg.c:mp_thread_set_name Unexecuted instantiation: stats.c:mp_thread_set_name demux.c:mp_thread_set_name Line | Count | Source | 222 | 14.7k | { | 223 | 14.7k | #if HAVE_GLIBC_THREAD_NAME | 224 | 14.7k | if (pthread_setname_np(pthread_self(), name) == ERANGE) { | 225 | 0 | char tname[16] = {0}; // glibc-checked kernel limit | 226 | 0 | strncpy(tname, name, sizeof(tname) - 1); | 227 | 0 | pthread_setname_np(pthread_self(), tname); | 228 | 0 | } | 229 | | #elif HAVE_BSD_THREAD_NAME | 230 | | pthread_set_name_np(pthread_self(), name); | 231 | | #elif HAVE_MAC_THREAD_NAME | 232 | | pthread_setname_np(name); | 233 | | #endif | 234 | 14.7k | } |
Unexecuted instantiation: demux_lavf.c:mp_thread_set_name Unexecuted instantiation: demux_mkv_timeline.c:mp_thread_set_name Unexecuted instantiation: demux_playlist.c:mp_thread_set_name Unexecuted instantiation: packet_pool.c:mp_thread_set_name Unexecuted instantiation: f_async_queue.c:mp_thread_set_name Unexecuted instantiation: f_decoder_wrapper.c:mp_thread_set_name Unexecuted instantiation: f_lavfi.c:mp_thread_set_name Unexecuted instantiation: f_output_chain.c:mp_thread_set_name Unexecuted instantiation: filter.c:mp_thread_set_name Unexecuted instantiation: dnd.c:mp_thread_set_name Unexecuted instantiation: input.c:mp_thread_set_name Unexecuted instantiation: dispatch.c:mp_thread_set_name Unexecuted instantiation: rendezvous.c:mp_thread_set_name thread_pool.c:mp_thread_set_name Line | Count | Source | 222 | 12.0k | { | 223 | 12.0k | #if HAVE_GLIBC_THREAD_NAME | 224 | 12.0k | if (pthread_setname_np(pthread_self(), name) == ERANGE) { | 225 | 0 | char tname[16] = {0}; // glibc-checked kernel limit | 226 | 0 | strncpy(tname, name, sizeof(tname) - 1); | 227 | 0 | pthread_setname_np(pthread_self(), tname); | 228 | 0 | } | 229 | | #elif HAVE_BSD_THREAD_NAME | 230 | | pthread_set_name_np(pthread_self(), name); | 231 | | #elif HAVE_MAC_THREAD_NAME | 232 | | pthread_setname_np(name); | 233 | | #endif | 234 | 12.0k | } |
Unexecuted instantiation: thread_tools.c:mp_thread_set_name Unexecuted instantiation: m_config_core.c:mp_thread_set_name Unexecuted instantiation: m_config_frontend.c:mp_thread_set_name Unexecuted instantiation: options.c:mp_thread_set_name Unexecuted instantiation: audio.c:mp_thread_set_name client.c:mp_thread_set_name Line | Count | Source | 222 | 11.6k | { | 223 | 11.6k | #if HAVE_GLIBC_THREAD_NAME | 224 | 11.6k | if (pthread_setname_np(pthread_self(), name) == ERANGE) { | 225 | 0 | char tname[16] = {0}; // glibc-checked kernel limit | 226 | 0 | strncpy(tname, name, sizeof(tname) - 1); | 227 | 0 | pthread_setname_np(pthread_self(), tname); | 228 | 0 | } | 229 | | #elif HAVE_BSD_THREAD_NAME | 230 | | pthread_set_name_np(pthread_self(), name); | 231 | | #elif HAVE_MAC_THREAD_NAME | 232 | | pthread_setname_np(name); | 233 | | #endif | 234 | 11.6k | } |
Unexecuted instantiation: command.c:mp_thread_set_name Unexecuted instantiation: configfiles.c:mp_thread_set_name Unexecuted instantiation: discnav.c:mp_thread_set_name Unexecuted instantiation: external_files.c:mp_thread_set_name loadfile.c:mp_thread_set_name Line | Count | Source | 222 | 16.1k | { | 223 | 16.1k | #if HAVE_GLIBC_THREAD_NAME | 224 | 16.1k | if (pthread_setname_np(pthread_self(), name) == ERANGE) { | 225 | 0 | char tname[16] = {0}; // glibc-checked kernel limit | 226 | 0 | strncpy(tname, name, sizeof(tname) - 1); | 227 | 0 | pthread_setname_np(pthread_self(), tname); | 228 | 0 | } | 229 | | #elif HAVE_BSD_THREAD_NAME | 230 | | pthread_set_name_np(pthread_self(), name); | 231 | | #elif HAVE_MAC_THREAD_NAME | 232 | | pthread_setname_np(name); | 233 | | #endif | 234 | 16.1k | } |
Unexecuted instantiation: main.c:mp_thread_set_name Unexecuted instantiation: misc.c:mp_thread_set_name Unexecuted instantiation: osd.c:mp_thread_set_name Unexecuted instantiation: playloop.c:mp_thread_set_name Unexecuted instantiation: screenshot.c:mp_thread_set_name Unexecuted instantiation: scripting.c:mp_thread_set_name Unexecuted instantiation: sub.c:mp_thread_set_name Unexecuted instantiation: video.c:mp_thread_set_name Unexecuted instantiation: clipboard.c:mp_thread_set_name Unexecuted instantiation: clipboard-vo.c:mp_thread_set_name Unexecuted instantiation: stream.c:mp_thread_set_name Unexecuted instantiation: stream_cb.c:mp_thread_set_name Unexecuted instantiation: stream_file.c:mp_thread_set_name Unexecuted instantiation: stream_lavf.c:mp_thread_set_name Unexecuted instantiation: stream_mpv.c:mp_thread_set_name Unexecuted instantiation: dec_sub.c:mp_thread_set_name Unexecuted instantiation: filter_sdh.c:mp_thread_set_name Unexecuted instantiation: lavc_conv.c:mp_thread_set_name Unexecuted instantiation: osd_libass.c:mp_thread_set_name Unexecuted instantiation: sd_ass.c:mp_thread_set_name Unexecuted instantiation: sd_lavc.c:mp_thread_set_name Unexecuted instantiation: vd_lavc.c:mp_thread_set_name Unexecuted instantiation: vf_sub.c:mp_thread_set_name Unexecuted instantiation: hwdec.c:mp_thread_set_name Unexecuted instantiation: mp_image.c:mp_thread_set_name Unexecuted instantiation: mp_image_pool.c:mp_thread_set_name Unexecuted instantiation: aspect.c:mp_thread_set_name Unexecuted instantiation: dr_helper.c:mp_thread_set_name Unexecuted instantiation: terminal_swapchain.c:mp_thread_set_name Unexecuted instantiation: context.c:mp_thread_set_name Unexecuted instantiation: error_diffusion.c:mp_thread_set_name Unexecuted instantiation: libmpv_gpu.c:mp_thread_set_name Unexecuted instantiation: shader_cache.c:mp_thread_set_name Unexecuted instantiation: spirv.c:mp_thread_set_name Unexecuted instantiation: user_shaders.c:mp_thread_set_name Unexecuted instantiation: utils.c:mp_thread_set_name Unexecuted instantiation: video_shaders.c:mp_thread_set_name Unexecuted instantiation: libmpv_sw.c:mp_thread_set_name Line | Count | Source | 222 | 31.9k | { | 223 | 31.9k | #if HAVE_GLIBC_THREAD_NAME | 224 | 31.9k | if (pthread_setname_np(pthread_self(), name) == ERANGE) { | 225 | 0 | char tname[16] = {0}; // glibc-checked kernel limit | 226 | 0 | strncpy(tname, name, sizeof(tname) - 1); | 227 | 0 | pthread_setname_np(pthread_self(), tname); | 228 | 0 | } | 229 | | #elif HAVE_BSD_THREAD_NAME | 230 | | pthread_set_name_np(pthread_self(), name); | 231 | | #elif HAVE_MAC_THREAD_NAME | 232 | | pthread_setname_np(name); | 233 | | #endif | 234 | 31.9k | } |
Unexecuted instantiation: vo_gpu.c:mp_thread_set_name Unexecuted instantiation: vo_image.c:mp_thread_set_name Unexecuted instantiation: vo_lavc.c:mp_thread_set_name Unexecuted instantiation: vo_libmpv.c:mp_thread_set_name Unexecuted instantiation: vo_null.c:mp_thread_set_name Unexecuted instantiation: vo_tct.c:mp_thread_set_name Unexecuted instantiation: vo_kitty.c:mp_thread_set_name Unexecuted instantiation: win_state.c:mp_thread_set_name Unexecuted instantiation: vo_gpu_next.c:mp_thread_set_name Unexecuted instantiation: libmpv_gpu_next.c:mp_thread_set_name Unexecuted instantiation: timer.c:mp_thread_set_name Unexecuted instantiation: ta.c:mp_thread_set_name Unexecuted instantiation: threads-posix.c:mp_thread_set_name Unexecuted instantiation: ipc-unix.c:mp_thread_set_name terminal-unix.c:mp_thread_set_name Line | Count | Source | 222 | 1 | { | 223 | 1 | #if HAVE_GLIBC_THREAD_NAME | 224 | 1 | if (pthread_setname_np(pthread_self(), name) == ERANGE) { | 225 | 0 | char tname[16] = {0}; // glibc-checked kernel limit | 226 | 0 | strncpy(tname, name, sizeof(tname) - 1); | 227 | 0 | pthread_setname_np(pthread_self(), tname); | 228 | 0 | } | 229 | | #elif HAVE_BSD_THREAD_NAME | 230 | | pthread_set_name_np(pthread_self(), name); | 231 | | #elif HAVE_MAC_THREAD_NAME | 232 | | pthread_setname_np(name); | 233 | | #endif | 234 | 1 | } |
Unexecuted instantiation: filter_regex.c:mp_thread_set_name Unexecuted instantiation: als-linux.c:mp_thread_set_name Unexecuted instantiation: path-unix.c:mp_thread_set_name Unexecuted instantiation: stream_dvb.c:mp_thread_set_name Unexecuted instantiation: common.c:mp_thread_set_name Unexecuted instantiation: formats.c:mp_thread_set_name Unexecuted instantiation: libmpv_gl.c:mp_thread_set_name Unexecuted instantiation: ra_gl.c:mp_thread_set_name |
235 | | |
236 | | static inline void mp_thread_set_min_timer_slack(void) |
237 | 31.9k | { |
238 | 31.9k | #if HAVE_PR_SET_TIMERSLACK |
239 | 31.9k | prctl(PR_SET_TIMERSLACK, 1UL); |
240 | 31.9k | #endif |
241 | 31.9k | } Unexecuted instantiation: ao_lavc.c:mp_thread_set_min_timer_slack Unexecuted instantiation: buffer.c:mp_thread_set_min_timer_slack Unexecuted instantiation: av_log.c:mp_thread_set_min_timer_slack Unexecuted instantiation: encode_lavc.c:mp_thread_set_min_timer_slack Unexecuted instantiation: msg.c:mp_thread_set_min_timer_slack Unexecuted instantiation: stats.c:mp_thread_set_min_timer_slack Unexecuted instantiation: demux.c:mp_thread_set_min_timer_slack Unexecuted instantiation: demux_lavf.c:mp_thread_set_min_timer_slack Unexecuted instantiation: demux_mkv_timeline.c:mp_thread_set_min_timer_slack Unexecuted instantiation: demux_playlist.c:mp_thread_set_min_timer_slack Unexecuted instantiation: packet_pool.c:mp_thread_set_min_timer_slack Unexecuted instantiation: f_async_queue.c:mp_thread_set_min_timer_slack Unexecuted instantiation: f_decoder_wrapper.c:mp_thread_set_min_timer_slack Unexecuted instantiation: f_lavfi.c:mp_thread_set_min_timer_slack Unexecuted instantiation: f_output_chain.c:mp_thread_set_min_timer_slack Unexecuted instantiation: filter.c:mp_thread_set_min_timer_slack Unexecuted instantiation: dnd.c:mp_thread_set_min_timer_slack Unexecuted instantiation: input.c:mp_thread_set_min_timer_slack Unexecuted instantiation: dispatch.c:mp_thread_set_min_timer_slack Unexecuted instantiation: rendezvous.c:mp_thread_set_min_timer_slack Unexecuted instantiation: thread_pool.c:mp_thread_set_min_timer_slack Unexecuted instantiation: thread_tools.c:mp_thread_set_min_timer_slack Unexecuted instantiation: m_config_core.c:mp_thread_set_min_timer_slack Unexecuted instantiation: m_config_frontend.c:mp_thread_set_min_timer_slack Unexecuted instantiation: options.c:mp_thread_set_min_timer_slack Unexecuted instantiation: audio.c:mp_thread_set_min_timer_slack Unexecuted instantiation: client.c:mp_thread_set_min_timer_slack Unexecuted instantiation: command.c:mp_thread_set_min_timer_slack Unexecuted instantiation: configfiles.c:mp_thread_set_min_timer_slack Unexecuted instantiation: discnav.c:mp_thread_set_min_timer_slack Unexecuted instantiation: external_files.c:mp_thread_set_min_timer_slack Unexecuted instantiation: loadfile.c:mp_thread_set_min_timer_slack Unexecuted instantiation: main.c:mp_thread_set_min_timer_slack Unexecuted instantiation: misc.c:mp_thread_set_min_timer_slack Unexecuted instantiation: osd.c:mp_thread_set_min_timer_slack Unexecuted instantiation: playloop.c:mp_thread_set_min_timer_slack Unexecuted instantiation: screenshot.c:mp_thread_set_min_timer_slack Unexecuted instantiation: scripting.c:mp_thread_set_min_timer_slack Unexecuted instantiation: sub.c:mp_thread_set_min_timer_slack Unexecuted instantiation: video.c:mp_thread_set_min_timer_slack Unexecuted instantiation: clipboard.c:mp_thread_set_min_timer_slack Unexecuted instantiation: clipboard-vo.c:mp_thread_set_min_timer_slack Unexecuted instantiation: stream.c:mp_thread_set_min_timer_slack Unexecuted instantiation: stream_cb.c:mp_thread_set_min_timer_slack Unexecuted instantiation: stream_file.c:mp_thread_set_min_timer_slack Unexecuted instantiation: stream_lavf.c:mp_thread_set_min_timer_slack Unexecuted instantiation: stream_mpv.c:mp_thread_set_min_timer_slack Unexecuted instantiation: dec_sub.c:mp_thread_set_min_timer_slack Unexecuted instantiation: filter_sdh.c:mp_thread_set_min_timer_slack Unexecuted instantiation: lavc_conv.c:mp_thread_set_min_timer_slack Unexecuted instantiation: osd_libass.c:mp_thread_set_min_timer_slack Unexecuted instantiation: sd_ass.c:mp_thread_set_min_timer_slack Unexecuted instantiation: sd_lavc.c:mp_thread_set_min_timer_slack Unexecuted instantiation: vd_lavc.c:mp_thread_set_min_timer_slack Unexecuted instantiation: vf_sub.c:mp_thread_set_min_timer_slack Unexecuted instantiation: hwdec.c:mp_thread_set_min_timer_slack Unexecuted instantiation: mp_image.c:mp_thread_set_min_timer_slack Unexecuted instantiation: mp_image_pool.c:mp_thread_set_min_timer_slack Unexecuted instantiation: aspect.c:mp_thread_set_min_timer_slack Unexecuted instantiation: dr_helper.c:mp_thread_set_min_timer_slack Unexecuted instantiation: terminal_swapchain.c:mp_thread_set_min_timer_slack Unexecuted instantiation: context.c:mp_thread_set_min_timer_slack Unexecuted instantiation: error_diffusion.c:mp_thread_set_min_timer_slack Unexecuted instantiation: libmpv_gpu.c:mp_thread_set_min_timer_slack Unexecuted instantiation: shader_cache.c:mp_thread_set_min_timer_slack Unexecuted instantiation: spirv.c:mp_thread_set_min_timer_slack Unexecuted instantiation: user_shaders.c:mp_thread_set_min_timer_slack Unexecuted instantiation: utils.c:mp_thread_set_min_timer_slack Unexecuted instantiation: video_shaders.c:mp_thread_set_min_timer_slack Unexecuted instantiation: libmpv_sw.c:mp_thread_set_min_timer_slack vo.c:mp_thread_set_min_timer_slack Line | Count | Source | 237 | 31.9k | { | 238 | 31.9k | #if HAVE_PR_SET_TIMERSLACK | 239 | | prctl(PR_SET_TIMERSLACK, 1UL); | 240 | 31.9k | #endif | 241 | 31.9k | } |
Unexecuted instantiation: vo_gpu.c:mp_thread_set_min_timer_slack Unexecuted instantiation: vo_image.c:mp_thread_set_min_timer_slack Unexecuted instantiation: vo_lavc.c:mp_thread_set_min_timer_slack Unexecuted instantiation: vo_libmpv.c:mp_thread_set_min_timer_slack Unexecuted instantiation: vo_null.c:mp_thread_set_min_timer_slack Unexecuted instantiation: vo_tct.c:mp_thread_set_min_timer_slack Unexecuted instantiation: vo_kitty.c:mp_thread_set_min_timer_slack Unexecuted instantiation: win_state.c:mp_thread_set_min_timer_slack Unexecuted instantiation: vo_gpu_next.c:mp_thread_set_min_timer_slack Unexecuted instantiation: libmpv_gpu_next.c:mp_thread_set_min_timer_slack Unexecuted instantiation: timer.c:mp_thread_set_min_timer_slack Unexecuted instantiation: ta.c:mp_thread_set_min_timer_slack Unexecuted instantiation: threads-posix.c:mp_thread_set_min_timer_slack Unexecuted instantiation: ipc-unix.c:mp_thread_set_min_timer_slack Unexecuted instantiation: terminal-unix.c:mp_thread_set_min_timer_slack Unexecuted instantiation: filter_regex.c:mp_thread_set_min_timer_slack Unexecuted instantiation: als-linux.c:mp_thread_set_min_timer_slack Unexecuted instantiation: path-unix.c:mp_thread_set_min_timer_slack Unexecuted instantiation: stream_dvb.c:mp_thread_set_min_timer_slack Unexecuted instantiation: common.c:mp_thread_set_min_timer_slack Unexecuted instantiation: formats.c:mp_thread_set_min_timer_slack Unexecuted instantiation: libmpv_gl.c:mp_thread_set_min_timer_slack Unexecuted instantiation: ra_gl.c:mp_thread_set_min_timer_slack |
242 | | |
243 | | static inline int64_t mp_thread_cpu_time_ns(mp_thread_id thread) |
244 | 36 | { |
245 | 36 | #if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0 && defined(_POSIX_THREAD_CPUTIME) |
246 | 36 | clockid_t id; |
247 | 36 | struct timespec ts; |
248 | 36 | if (pthread_getcpuclockid(thread, &id) == 0 && clock_gettime(id, &ts) == 0) |
249 | 36 | return MP_TIME_S_TO_NS(ts.tv_sec) + ts.tv_nsec; |
250 | 0 | #endif |
251 | 0 | return -1; |
252 | 36 | } Unexecuted instantiation: ao_lavc.c:mp_thread_cpu_time_ns Unexecuted instantiation: buffer.c:mp_thread_cpu_time_ns Unexecuted instantiation: av_log.c:mp_thread_cpu_time_ns Unexecuted instantiation: encode_lavc.c:mp_thread_cpu_time_ns Unexecuted instantiation: msg.c:mp_thread_cpu_time_ns stats.c:mp_thread_cpu_time_ns Line | Count | Source | 244 | 36 | { | 245 | 36 | #if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0 && defined(_POSIX_THREAD_CPUTIME) | 246 | 36 | clockid_t id; | 247 | 36 | struct timespec ts; | 248 | 36 | if (pthread_getcpuclockid(thread, &id) == 0 && clock_gettime(id, &ts) == 0) | 249 | 36 | return MP_TIME_S_TO_NS(ts.tv_sec) + ts.tv_nsec; | 250 | 0 | #endif | 251 | 0 | return -1; | 252 | 36 | } |
Unexecuted instantiation: demux.c:mp_thread_cpu_time_ns Unexecuted instantiation: demux_lavf.c:mp_thread_cpu_time_ns Unexecuted instantiation: demux_mkv_timeline.c:mp_thread_cpu_time_ns Unexecuted instantiation: demux_playlist.c:mp_thread_cpu_time_ns Unexecuted instantiation: packet_pool.c:mp_thread_cpu_time_ns Unexecuted instantiation: f_async_queue.c:mp_thread_cpu_time_ns Unexecuted instantiation: f_decoder_wrapper.c:mp_thread_cpu_time_ns Unexecuted instantiation: f_lavfi.c:mp_thread_cpu_time_ns Unexecuted instantiation: f_output_chain.c:mp_thread_cpu_time_ns Unexecuted instantiation: filter.c:mp_thread_cpu_time_ns Unexecuted instantiation: dnd.c:mp_thread_cpu_time_ns Unexecuted instantiation: input.c:mp_thread_cpu_time_ns Unexecuted instantiation: dispatch.c:mp_thread_cpu_time_ns Unexecuted instantiation: rendezvous.c:mp_thread_cpu_time_ns Unexecuted instantiation: thread_pool.c:mp_thread_cpu_time_ns Unexecuted instantiation: thread_tools.c:mp_thread_cpu_time_ns Unexecuted instantiation: m_config_core.c:mp_thread_cpu_time_ns Unexecuted instantiation: m_config_frontend.c:mp_thread_cpu_time_ns Unexecuted instantiation: options.c:mp_thread_cpu_time_ns Unexecuted instantiation: audio.c:mp_thread_cpu_time_ns Unexecuted instantiation: client.c:mp_thread_cpu_time_ns Unexecuted instantiation: command.c:mp_thread_cpu_time_ns Unexecuted instantiation: configfiles.c:mp_thread_cpu_time_ns Unexecuted instantiation: discnav.c:mp_thread_cpu_time_ns Unexecuted instantiation: external_files.c:mp_thread_cpu_time_ns Unexecuted instantiation: loadfile.c:mp_thread_cpu_time_ns Unexecuted instantiation: main.c:mp_thread_cpu_time_ns Unexecuted instantiation: misc.c:mp_thread_cpu_time_ns Unexecuted instantiation: osd.c:mp_thread_cpu_time_ns Unexecuted instantiation: playloop.c:mp_thread_cpu_time_ns Unexecuted instantiation: screenshot.c:mp_thread_cpu_time_ns Unexecuted instantiation: scripting.c:mp_thread_cpu_time_ns Unexecuted instantiation: sub.c:mp_thread_cpu_time_ns Unexecuted instantiation: video.c:mp_thread_cpu_time_ns Unexecuted instantiation: clipboard.c:mp_thread_cpu_time_ns Unexecuted instantiation: clipboard-vo.c:mp_thread_cpu_time_ns Unexecuted instantiation: stream.c:mp_thread_cpu_time_ns Unexecuted instantiation: stream_cb.c:mp_thread_cpu_time_ns Unexecuted instantiation: stream_file.c:mp_thread_cpu_time_ns Unexecuted instantiation: stream_lavf.c:mp_thread_cpu_time_ns Unexecuted instantiation: stream_mpv.c:mp_thread_cpu_time_ns Unexecuted instantiation: dec_sub.c:mp_thread_cpu_time_ns Unexecuted instantiation: filter_sdh.c:mp_thread_cpu_time_ns Unexecuted instantiation: lavc_conv.c:mp_thread_cpu_time_ns Unexecuted instantiation: osd_libass.c:mp_thread_cpu_time_ns Unexecuted instantiation: sd_ass.c:mp_thread_cpu_time_ns Unexecuted instantiation: sd_lavc.c:mp_thread_cpu_time_ns Unexecuted instantiation: vd_lavc.c:mp_thread_cpu_time_ns Unexecuted instantiation: vf_sub.c:mp_thread_cpu_time_ns Unexecuted instantiation: hwdec.c:mp_thread_cpu_time_ns Unexecuted instantiation: mp_image.c:mp_thread_cpu_time_ns Unexecuted instantiation: mp_image_pool.c:mp_thread_cpu_time_ns Unexecuted instantiation: aspect.c:mp_thread_cpu_time_ns Unexecuted instantiation: dr_helper.c:mp_thread_cpu_time_ns Unexecuted instantiation: terminal_swapchain.c:mp_thread_cpu_time_ns Unexecuted instantiation: context.c:mp_thread_cpu_time_ns Unexecuted instantiation: error_diffusion.c:mp_thread_cpu_time_ns Unexecuted instantiation: libmpv_gpu.c:mp_thread_cpu_time_ns Unexecuted instantiation: shader_cache.c:mp_thread_cpu_time_ns Unexecuted instantiation: spirv.c:mp_thread_cpu_time_ns Unexecuted instantiation: user_shaders.c:mp_thread_cpu_time_ns Unexecuted instantiation: utils.c:mp_thread_cpu_time_ns Unexecuted instantiation: video_shaders.c:mp_thread_cpu_time_ns Unexecuted instantiation: libmpv_sw.c:mp_thread_cpu_time_ns Unexecuted instantiation: vo.c:mp_thread_cpu_time_ns Unexecuted instantiation: vo_gpu.c:mp_thread_cpu_time_ns Unexecuted instantiation: vo_image.c:mp_thread_cpu_time_ns Unexecuted instantiation: vo_lavc.c:mp_thread_cpu_time_ns Unexecuted instantiation: vo_libmpv.c:mp_thread_cpu_time_ns Unexecuted instantiation: vo_null.c:mp_thread_cpu_time_ns Unexecuted instantiation: vo_tct.c:mp_thread_cpu_time_ns Unexecuted instantiation: vo_kitty.c:mp_thread_cpu_time_ns Unexecuted instantiation: win_state.c:mp_thread_cpu_time_ns Unexecuted instantiation: vo_gpu_next.c:mp_thread_cpu_time_ns Unexecuted instantiation: libmpv_gpu_next.c:mp_thread_cpu_time_ns Unexecuted instantiation: timer.c:mp_thread_cpu_time_ns Unexecuted instantiation: ta.c:mp_thread_cpu_time_ns Unexecuted instantiation: threads-posix.c:mp_thread_cpu_time_ns Unexecuted instantiation: ipc-unix.c:mp_thread_cpu_time_ns Unexecuted instantiation: terminal-unix.c:mp_thread_cpu_time_ns Unexecuted instantiation: filter_regex.c:mp_thread_cpu_time_ns Unexecuted instantiation: als-linux.c:mp_thread_cpu_time_ns Unexecuted instantiation: path-unix.c:mp_thread_cpu_time_ns Unexecuted instantiation: stream_dvb.c:mp_thread_cpu_time_ns Unexecuted instantiation: common.c:mp_thread_cpu_time_ns Unexecuted instantiation: formats.c:mp_thread_cpu_time_ns Unexecuted instantiation: libmpv_gl.c:mp_thread_cpu_time_ns Unexecuted instantiation: ra_gl.c:mp_thread_cpu_time_ns |