OMXEncoder: remove pthread_mutex_t lock from member variables (#19948)

* remove mutex

* rebase master
old-commit-hash: 9a9641a296dcc0887d902412214510f0ff912fa2
This commit is contained in:
Dean Lee
2021-01-31 11:11:03 +08:00
committed by GitHub
parent 04d7c01eda
commit 06ac698691
4 changed files with 0 additions and 30 deletions
-13
View File
@@ -1,13 +0,0 @@
#ifndef COMMON_MUTEX_H
#define COMMON_MUTEX_H
#include <pthread.h>
static inline void mutex_init_reentrant(pthread_mutex_t *mutex) {
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
pthread_mutex_init(mutex, &attr);
}
#endif