#include <assert.h>
#include <errno.h>
#include <limits.h>
+#include <pthread.h>
#include <poll.h>
#include <stdint.h>
#include <stdio.h>
char address[256];
snprintf(address, sizeof(address), "hw:%d,%d", card_index, dev_index);
+ char thread_name[16];
+ snprintf(thread_name, sizeof(thread_name), "Reprobe_hw:%d,%d", card_index, dev_index);
+ pthread_setname_np(pthread_self(), thread_name);
+
for ( ;; ) { // Termination condition within the loop.
sleep(1);
void ALSAPool::inotify_thread_func()
{
+ pthread_setname_np(pthread_self(), "ALSA_Hotplug");
+
int inotify_fd = inotify_init();
if (inotify_fd == -1) {
perror("inotify_init()");
-Subproject commit 9053593313b47bd5fd6b888bec9809bf4aacc8a9
+Subproject commit 1833f747a9008f38e5597622f2e3dbce3340e2cb
#ifdef __SSE2__
#include <immintrin.h>
#endif
+#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
IDeckLinkAudioInputPacket *audio_frame)
{
if (!done_init) {
+ char thread_name[16];
+ snprintf(thread_name, sizeof(thread_name), "DeckLink_C_%d", card_index);
+ pthread_setname_np(pthread_self(), thread_name);
if (has_dequeue_callbacks) {
dequeue_init_callback();
}
#include <movit/effect_util.h>
#include <movit/util.h>
#include <movit/resource_pool.h> // Must be above the Xlib includes.
+#include <pthread.h>
#include <epoxy/egl.h>
void DeckLinkOutput::present_thread_func()
{
+ pthread_setname_np(pthread_self(), "DeckLinkOutput");
for ( ;; ) {
unique_ptr<Frame> frame;
{
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/message.h>
#include <google/protobuf/text_format.h>
+#include <pthread.h>
#include <poll.h>
#include <stdint.h>
#include <stdio.h>
void MIDIMapper::thread_func()
{
+ pthread_setname_np(pthread_self(), "MIDIMapper");
+
snd_seq_t *seq;
int err;
#include <movit/image_format.h>
#include <movit/init.h>
#include <movit/resource_pool.h>
+#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
void Mixer::thread_func()
{
+ pthread_setname_np(pthread_self(), "Mixer_OpenGL");
+
eglBindAPI(EGL_OPENGL_API);
QOpenGLContext *context = create_context(mixer_surface);
if (!make_current(context, mixer_surface)) {
void Mixer::audio_thread_func()
{
+ pthread_setname_np(pthread_self(), "Mixer_Audio");
+
while (!should_quit) {
AudioTask task;
#include <assert.h>
#include <epoxy/egl.h>
#include <fcntl.h>
+#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void QuickSyncEncoderImpl::storage_task_thread()
{
+ pthread_setname_np(pthread_self(), "QS_Storage");
for ( ;; ) {
storage_task current;
{
void QuickSyncEncoderImpl::encode_thread_func()
{
+ pthread_setname_np(pthread_self(), "QS_Encode");
+
int64_t last_dts = -1;
int gop_start_display_frame_num = 0;
for (int display_frame_num = 0; ; ++display_frame_num) {