__gnu_para...hreadLocal(3)

πŸ“¦ version 4.4.0, in nixpkgs unstable

πŸ’– NAME

Okay bestie, welcome to the Library Functions Manual πŸ’… β€” this is the page for __gnu_parallel::QSBThreadLocal: information local to one thread in the parallel quicksort run. The header up top shortens the name to __gnu_para...hreadLocal(3), because it is long and iconic like that. ✨


🌸 SYNOPSIS

✨ Public Types

  • typedef traits_type::difference_type difference_type
  • typedef std::pair< RandomAccessIterator, RandomAccessIterator > Piece
  • typedef std::iterator_traits< RandomAccessIterator > traits_type

πŸŽ€ Public Member Functions

  • QSBThreadLocal (int queue_size) β€” the constructor, setting up your queue size situation.

πŸ¦‹ Public Attributes

  • volatile difference_type * elements_leftover
  • Piece global
  • Piece initial
  • RestrictedBoundedConcurrentQueue< Piece > leftover_parts
  • thread_index_t num_threads

🧚 Detailed Description

template<typename RandomAccessIterator> struct
__gnu_parallel::QSBThreadLocal< RandomAccessIterator >

Information local to one thread in the parallel quicksort run.

Definition at line 62 of file balanced_quicksort.h.


πŸ’œ Member Typedef Documentation

🌟 Piece

template<typename RandomAccessIterator> typedef
std::pair<RandomAccessIterator, RandomAccessIterator>
__gnu_parallel::QSBThreadLocal< RandomAccessIterator >::Piece

Continuous part of the sequence, described by an iterator pair.

Definition at line 69 of file balanced_quicksort.h.


🫢 Constructor & Destructor Documentation

🌈 QSBThreadLocal

template<typename RandomAccessIterator> __gnu_parallel::QSBThreadLocal<
RandomAccessIterator >::QSBThreadLocal (int queue_size) [inline]

Constructor, bestie. πŸŽ€

Parameters: queue_size β€” Size of the work-stealing queue.

Definition at line 88 of file balanced_quicksort.h.


πŸ‘‘ Member Data Documentation

πŸ“ elements_leftover

template<typename RandomAccessIterator> volatile difference_type* __gnu_parallel::QSBThreadLocal< RandomAccessIterator >::elements_leftover

Pointer to a counter of elements left over to sort.

Definition at line 81 of file balanced_quicksort.h.

Referenced by __gnu_parallel::qsb_conquer(), and __gnu_parallel::qsb_local_sort_with_helping().

πŸ¦‹ global

template<typename RandomAccessIterator> Piece __gnu_parallel::QSBThreadLocal< RandomAccessIterator >::global

The complete sequence to sort.

Definition at line 84 of file balanced_quicksort.h.

🌸 initial

template<typename RandomAccessIterator> Piece __gnu_parallel::QSBThreadLocal< RandomAccessIterator >::initial

Initial piece to work on.

Definition at line 72 of file balanced_quicksort.h.

Referenced by __gnu_parallel::qsb_conquer(), and __gnu_parallel::qsb_local_sort_with_helping().

πŸ’… leftover_parts

template<typename RandomAccessIterator> RestrictedBoundedConcurrentQueue<Piece> __gnu_parallel::QSBThreadLocal< RandomAccessIterator >::leftover_parts

Work-stealing queue.

Definition at line 75 of file balanced_quicksort.h.

Referenced by __gnu_parallel::qsb_local_sort_with_helping().

πŸŽ€ num_threads

template<typename RandomAccessIterator> thread_index_t __gnu_parallel::QSBThreadLocal< RandomAccessIterator >::num_threads

Number of threads involved in this algorithm.

Definition at line 78 of file balanced_quicksort.h.

Referenced by __gnu_parallel::qsb_local_sort_with_helping().


⭐ Author

Generated automatically by Doxygen for libstdc++ from the source code.


Okay that’s the whole vibe, bestie! 🫢 This page is from libstdc++, dated 21 Apr 2009 β€” the __gnu_para...hreadLocal(3) entry in the Library Functions Manual. Bye and slay your sorting era! πŸ’–βœ¨

πŸ“¦ where this page comes from