mirror of https://github.com/CGAL/cgal
Move is_currently_single_threaded to namespace CGAL
This commit is contained in:
parent
8fa0f55ac7
commit
dbe94c282e
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue