mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
Use AsAtomic from ngcore
This commit is contained in:
parent
18bdd9df93
commit
fe78d9d7b4
@ -96,12 +96,6 @@ void ParallelFor( int first, int next, const TFunc & f )
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
template<typename T>
|
|
||||||
inline atomic<T> & AsAtomic (T & d)
|
|
||||||
{
|
|
||||||
return reinterpret_cast<atomic<T>&> (d);
|
|
||||||
}
|
|
||||||
|
|
||||||
typedef void (*TaskManager)(std::function<void(int,int)>);
|
typedef void (*TaskManager)(std::function<void(int,int)>);
|
||||||
typedef void (*Tracer)(string, bool); // false .. start, true .. stop
|
typedef void (*Tracer)(string, bool); // false .. start, true .. stop
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user