SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
seqan3::detail::execution_handler_parallel::internal_state Class Reference

An internal state stored on the heap to allow safe move construction/assignment of the class. More...

Public Member Functions

void stop_and_wait ()
 Waits until all threads have been joined.
 
Constructors, destructor and assignment

Instances of this class are not copyable and not movable.

 internal_state ()=default
 Defaulted.
 
 internal_state (internal_state const &)=delete
 Deleted.
 
 internal_state (internal_state &&)=delete
 Deleted.
 
internal_stateoperator= (internal_state const &)=delete
 Deleted.
 
internal_stateoperator= (internal_state &&)=delete
 Deleted.
 
 ~internal_state ()
 Waits for threads to finish.
 

Public Attributes

contrib::fixed_buffer_queue< task_typequeue {10000}
 The concurrent queue containing the algorithms to process.
 
std::vector< std::threadthread_pool {}
 The thread pool.
 

Detailed Description

An internal state stored on the heap to allow safe move construction/assignment of the class.

Thread safety

This class is only intended for use with a single producer model.

Member Function Documentation

◆ stop_and_wait()

void seqan3::detail::execution_handler_parallel::internal_state::stop_and_wait ( )
inline

Waits until all threads have been joined.

Thread safety

This function is not thread-safe.


The documentation for this class was generated from the following file:
Hide me