mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 01:40:33 +05:00
Replace boost thread by pthreads
This commit is contained in:
parent
91ef78b877
commit
ec1ac16769
@ -73,14 +73,14 @@
|
|||||||
|
|
||||||
#include "Utils_ExceptHandlers.hxx"
|
#include "Utils_ExceptHandlers.hxx"
|
||||||
|
|
||||||
#ifndef WIN32
|
#if (!defined WIN32 && !defined __EMSCRIPTEN__)
|
||||||
#include <boost/thread/thread.hpp>
|
#include <boost/thread/thread.hpp>
|
||||||
#include <boost/bind.hpp>
|
#include <boost/bind.hpp>
|
||||||
#else
|
#else
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef WIN32
|
#if (!defined WIN32 && !defined __EMSCRIPTEN__)
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
namespace fs=boost::filesystem;
|
namespace fs=boost::filesystem;
|
||||||
#endif
|
#endif
|
||||||
@ -164,7 +164,7 @@ SMESH_Mesh::SMESH_Mesh():
|
|||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
#ifndef WIN32
|
#if (!defined WIN32 && !defined __EMSCRIPTEN__)
|
||||||
void deleteMeshDS(SMESHDS_Mesh* meshDS)
|
void deleteMeshDS(SMESHDS_Mesh* meshDS)
|
||||||
{
|
{
|
||||||
delete meshDS;
|
delete meshDS;
|
||||||
@ -225,7 +225,7 @@ SMESH_Mesh::~SMESH_Mesh()
|
|||||||
|
|
||||||
if ( _meshDS ) {
|
if ( _meshDS ) {
|
||||||
// delete _meshDS, in a thread in order not to block closing a study with large meshes
|
// 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 ));
|
boost::thread aThread(boost::bind( & deleteMeshDS, _meshDS ));
|
||||||
#else
|
#else
|
||||||
pthread_t thread;
|
pthread_t thread;
|
||||||
|
Loading…
Reference in New Issue
Block a user