Add TODO for S1-1767 (lock order reversal)
This commit is contained in:
parent
472cb05f06
commit
f9b93210ed
1 changed files with 2 additions and 0 deletions
|
|
@ -287,6 +287,8 @@ void ArchMultithreadPosix::lockMutex(ArchMutex mutex) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ArchMultithreadPosix::unlockMutex(ArchMutex mutex) {
|
void ArchMultithreadPosix::unlockMutex(ArchMutex mutex) {
|
||||||
|
// TODO: S1-1767, we should use raii c++17 mutex instead of archaeic pthread
|
||||||
|
// to solve possible lock order reversal.
|
||||||
int status = pthread_mutex_unlock(&mutex->m_mutex);
|
int status = pthread_mutex_unlock(&mutex->m_mutex);
|
||||||
|
|
||||||
switch (status) {
|
switch (status) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue