LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches
lasp_thread.cpp File Reference
#include "lasp_thread.h"
#include "BS_thread_pool.hpp"
#include "debugtrace.hpp"
#include <memory>
Include dependency graph for lasp_thread.cpp:

Go to the source code of this file.

Typedefs

using Lck = std::scoped_lock< std::mutex >
 
using rte = std::runtime_error
 

Variables

std::weak_ptr< BS::thread_pool > _global_weak_pool
 Store a global weak_ptr, that is used to create new shared pointers if any other shared pointers are still alive. If not, we create a new instance.
 
std::mutex _mtx
 Global mutex, used to restrict the pool creation to a single thread at once.
 

Typedef Documentation

◆ Lck

using Lck = std::scoped_lock<std::mutex>

Definition at line 20 of file lasp_thread.cpp.

◆ rte

using rte = std::runtime_error

Definition at line 21 of file lasp_thread.cpp.

Variable Documentation

◆ _global_weak_pool

std::weak_ptr<BS::thread_pool> _global_weak_pool

Store a global weak_ptr, that is used to create new shared pointers if any other shared pointers are still alive. If not, we create a new instance.

Definition at line 12 of file lasp_thread.cpp.

◆ _mtx

std::mutex _mtx

Global mutex, used to restrict the pool creation to a single thread at once.

Definition at line 18 of file lasp_thread.cpp.