Replace boost thread by pthreads

This commit is contained in:
Louis Gombert 2024-08-19 09:38:15 +00:00
parent 91ef78b877
commit ec1ac16769

View File

@ -73,14 +73,14 @@
#include "Utils_ExceptHandlers.hxx"
#ifndef WIN32
#if (!defined WIN32 && !defined __EMSCRIPTEN__)
#include <boost/thread/thread.hpp>
#include <boost/bind.hpp>
#else
#include <pthread.h>
#endif
#ifndef WIN32
#if (!defined WIN32 && !defined __EMSCRIPTEN__)
#include <boost/filesystem.hpp>
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;