#include <deal.II/base/thread_management.h>
-#include <iostream>
-#include <cstdlib>
-
-#ifdef DEAL_II_USE_MT_POSIX
-# include <list>
-#endif
-
-#ifndef DEAL_II_USE_DIRECT_ERRNO_H
-# include <errno.h>
-#else
-# include </usr/include/errno.h>
-#endif
-#ifndef DEAL_II_MSVC
-# include <sys/errno.h>
-#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
-#ifdef HAVE_SYS_SYSCALL_H
-# include <sys/syscall.h>
-#endif
+#include <cerrno>
+#include <cstdlib>
+#include <iostream>
+#include <list>
DEAL_II_NAMESPACE_OPEN
{
#ifdef HAVE_GETPID
const pid_t this_id = getpid();
-#elif defined(SYS_gettid)
- const int this_id = syscall(SYS_gettid);
#else
-# ifdef DEAL_II_MSVC
const unsigned int this_id = 0;
-# else
- const pid_t this_id = 0;
-# endif
#endif
+
return static_cast<unsigned int>(this_id);
}
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams