ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
POCKETFFT_NAMESPACE::detail::threading::latch Class Reference

#include <pocketfft_hdronly.h>

Detailed Description

Definition at line 731 of file pocketfft_hdronly.h.

+ Collaboration diagram for POCKETFFT_NAMESPACE::detail::threading::latch:

Public Member Functions

void count_down ()
 
bool is_ready ()
 
 latch (vcl_size_t n)
 
void wait ()
 

Private Types

using lock_t = std::unique_lock<std::mutex>
 

Private Attributes

std::condition_variable completed_
 
std::mutex mut_
 
std::atomic< vcl_size_t > num_left_
 

Member Typedef Documentation

◆ lock_t

using POCKETFFT_NAMESPACE::detail::threading::latch::lock_t = std::unique_lock<std::mutex>
private

Definition at line 736 of file pocketfft_hdronly.h.

Constructor & Destructor Documentation

◆ latch()

POCKETFFT_NAMESPACE::detail::threading::latch::latch ( vcl_size_t n)
inlineexplicit

Definition at line 739 of file pocketfft_hdronly.h.

References num_left_.

Member Function Documentation

◆ count_down()

void POCKETFFT_NAMESPACE::detail::threading::latch::count_down ( )
inline

Definition at line 741 of file pocketfft_hdronly.h.

References completed_, mut_, and num_left_.

Referenced by POCKETFFT_NAMESPACE::detail::threading::thread_map().

◆ is_ready()

bool POCKETFFT_NAMESPACE::detail::threading::latch::is_ready ( )
inline

Definition at line 754 of file pocketfft_hdronly.h.

References num_left_.

Referenced by wait().

◆ wait()

void POCKETFFT_NAMESPACE::detail::threading::latch::wait ( )
inline

Definition at line 749 of file pocketfft_hdronly.h.

References completed_, is_ready(), and mut_.

Referenced by POCKETFFT_NAMESPACE::detail::threading::thread_map().

Member Data Documentation

◆ completed_

std::condition_variable POCKETFFT_NAMESPACE::detail::threading::latch::completed_
private

Definition at line 735 of file pocketfft_hdronly.h.

Referenced by count_down(), and wait().

◆ mut_

std::mutex POCKETFFT_NAMESPACE::detail::threading::latch::mut_
private

Definition at line 734 of file pocketfft_hdronly.h.

Referenced by count_down(), and wait().

◆ num_left_

std::atomic<vcl_size_t> POCKETFFT_NAMESPACE::detail::threading::latch::num_left_
private

Definition at line 733 of file pocketfft_hdronly.h.

Referenced by count_down(), is_ready(), and latch().


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