Skip to content

Commit

Permalink
Fix order of operations on pthread attribute: init first, then modify
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzoua committed Nov 8, 2015
1 parent 66607f3 commit 0415cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMXThread.cpp
Expand Up @@ -41,8 +41,8 @@
OMXThread::OMXThread()
{
pthread_mutex_init(&m_lock, NULL);
pthread_attr_setdetachstate(&m_tattr, PTHREAD_CREATE_JOINABLE);
pthread_attr_init(&m_tattr);
pthread_attr_setdetachstate(&m_tattr, PTHREAD_CREATE_JOINABLE);
m_thread = 0;
m_bStop = false;
m_running = false;
Expand Down

0 comments on commit 0415cda

Please sign in to comment.