Move is_currently_single_threaded to namespace CGAL

This commit is contained in:
Marc Glisse 2021-06-11 22:44:30 +02:00
parent 8fa0f55ac7
commit dbe94c282e
1 changed files with 5 additions and 5 deletions

View File

@ -591,13 +591,13 @@ using std::max;
#endif #endif
#ifndef CGAL_HAS_THREADS #ifndef CGAL_HAS_THREADS
inline bool is_currently_single_threaded(){ return true; } namespace CGAL { inline bool is_currently_single_threaded(){ return true; } }
#elif __has_include(<sys/single_threaded.h>) #elif __has_include(<sys/single_threaded.h>)
#include <sys/single_threaded.h> # include <sys/single_threaded.h>
inline bool is_currently_single_threaded(){ return ::__libc_single_threaded; } namespace CGAL { inline bool is_currently_single_threaded(){ return ::__libc_single_threaded; } }
#else #else
/* This is the conservative default */ /* This is the conservative default */
inline bool is_currently_single_threaded(){ return false; } namespace CGAL { inline bool is_currently_single_threaded(){ return false; } }
#endif #endif
// Support for LEDA with threads // Support for LEDA with threads