Commit 8e18cc12 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

compat: Thread: Add missing pthread error handling

parent 76350c6e
......@@ -166,7 +166,9 @@ public:
WaitForSingleObjectEx( m_id.m_id, INFINITE, TRUE );
CloseHandle( m_id.m_id );
#else
pthread_join( m_id.m_id, nullptr );
auto res = pthread_join( m_id.m_id, nullptr );
if ( res != 0 )
throw std::system_error{ std::error_code( res, std::system_category() ) };
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment