Do not define pthread_* in lightweight_thread.hpp; mingw-w64 includes pthread.h in the standard library headers

This commit is contained in:
Peter Dimov
2018-03-08 01:19:44 +02:00
parent 5885763287
commit d1600b8abc
6 changed files with 52 additions and 23 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ int main()
clock_t t = clock();
pthread_t a[ m ];
boost::detail::lw_thread_t a[ m ];
for( int i = 0; i < m; ++i )
{
@@ -71,7 +71,7 @@ int main()
for( int j = 0; j < m; ++j )
{
pthread_join( a[j], 0 );
boost::detail::lw_thread_join( a[j] );
}
t = clock() - t;