mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 11:10:34 +05:00
Corrections for windows
This commit is contained in:
parent
93edbb3a29
commit
18907e41a0
@ -55,9 +55,14 @@ class SMESH_EXPORT SMESH_ParallelMesh: public SMESH_Mesh
|
|||||||
void wait() override {_pool->join(); DeletePoolThreads(); InitPoolThreads(); };
|
void wait() override {_pool->join(); DeletePoolThreads(); InitPoolThreads(); };
|
||||||
|
|
||||||
// Thread Pool
|
// Thread Pool
|
||||||
|
#ifndef WIN32
|
||||||
void InitPoolThreads() {_pool = new boost::asio::thread_pool(GetPoolNbThreads());};
|
void InitPoolThreads() {_pool = new boost::asio::thread_pool(GetPoolNbThreads());};
|
||||||
void DeletePoolThreads() {delete _pool;};
|
|
||||||
boost::asio::thread_pool* GetPool() {return _pool;};
|
boost::asio::thread_pool* GetPool() {return _pool;};
|
||||||
|
#else
|
||||||
|
void InitPoolThreads() {};
|
||||||
|
void* GetPool() {return NULL;};
|
||||||
|
#endif
|
||||||
|
void DeletePoolThreads() {delete _pool;};
|
||||||
int GetPoolNbThreads();
|
int GetPoolNbThreads();
|
||||||
|
|
||||||
// Temporary folder
|
// Temporary folder
|
||||||
@ -112,10 +117,10 @@ class SMESH_EXPORT SMESH_ParallelMesh: public SMESH_Mesh
|
|||||||
// Mutex for multhitreading write in SMESH_Mesh
|
// Mutex for multhitreading write in SMESH_Mesh
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
boost::mutex _my_lock;
|
boost::mutex _my_lock;
|
||||||
#endif
|
|
||||||
boost::filesystem::path tmp_folder;
|
|
||||||
// thread pool for computation
|
// thread pool for computation
|
||||||
boost::asio::thread_pool * _pool = nullptr;
|
boost::asio::thread_pool * _pool = nullptr;
|
||||||
|
#endif
|
||||||
|
boost::filesystem::path tmp_folder;
|
||||||
|
|
||||||
int _method = ParallelismMethod::MultiThread;
|
int _method = ParallelismMethod::MultiThread;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user