std::vector<std::string> cmdline; /* all we got in argv */
} // namespace simgrid::xbt
-int sthread_inside_simgrid = 0; // whether sthread should leave pthread operations or intercept them.
int xbt_initialized = 0;
simgrid::config::Flag<bool> cfg_dbg_clean_atexit{
*/
static void xbt_preinit() XBT_ATTRIB_CONSTRUCTOR(200);
static void xbt_postexit();
+void sthread_enable()
+{ // These symbols are used from ContextSwapped in any case, but they are only useful
+}
+void sthread_disable()
+{ // when libsthread is LD_PRELOADED. In this case, sthread's implem gets used instead.
+}
#ifdef _WIN32
#include <windows.h>
static void xbt_preinit()
{
- sthread_inside_simgrid = 1;
#ifdef _WIN32
SYSTEM_INFO si;
GetSystemInfo(&si);
xbt_log_preinit();
xbt_dict_preinit();
atexit(xbt_postexit);
- sthread_inside_simgrid = 0;
}
static void xbt_postexit()
{
return false;
}
-#endif
\ No newline at end of file
+#endif