From ec1ac167690d6757d0d2d03c0c1f31e8aaa9fdb1 Mon Sep 17 00:00:00 2001 From: Louis Gombert Date: Mon, 19 Aug 2024 09:38:15 +0000 Subject: [PATCH] Replace boost thread by pthreads --- src/SMESH/SMESH_Mesh.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index 200dbb26d..e5356836b 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -73,14 +73,14 @@ #include "Utils_ExceptHandlers.hxx" -#ifndef WIN32 +#if (!defined WIN32 && !defined __EMSCRIPTEN__) #include #include #else #include #endif -#ifndef WIN32 +#if (!defined WIN32 && !defined __EMSCRIPTEN__) #include namespace fs=boost::filesystem; #endif @@ -164,7 +164,7 @@ SMESH_Mesh::SMESH_Mesh(): namespace { -#ifndef WIN32 +#if (!defined WIN32 && !defined __EMSCRIPTEN__) void deleteMeshDS(SMESHDS_Mesh* meshDS) { delete meshDS; @@ -225,7 +225,7 @@ SMESH_Mesh::~SMESH_Mesh() if ( _meshDS ) { // delete _meshDS, in a thread in order not to block closing a study with large meshes -#ifndef WIN32 +#if (!defined WIN32 && !defined __EMSCRIPTEN__) boost::thread aThread(boost::bind( & deleteMeshDS, _meshDS )); #else pthread_t thread;