mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
Replace boost thread by pthreads
This commit is contained in:
parent
91ef78b877
commit
ec1ac16769
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user