sc::ProcThreadGrp(3)

πŸ“¦
version 2.3.1 Β· 5 versions
, in ubuntu jammy

πŸ’– NAME πŸ’–

Okay bestie, welcome to the MPQC manual page for sc::ProcThreadGrp(3) β€” yep, the header tea is folded in right here instead of copy-pasted as its own line. This class is giving one-thread wonder energy, and honestly? Slay. The ProcThreadGrp class privides a concrete thread group appropriate for an environment where there is only one thread. (That spelling is literally in the original, and we are respecting the artifact πŸ’…)

🌸 SYNOPSIS 🌸

#include <thread.h>

Inherits sc::ThreadGrp.

✨ Public Member Functions ✨

  • ProcThreadGrp (const Ref< KeyVal > &) β€” listed exactly like this, with no extra one-liner in the original.
  • int start_threads () β€” starts the threads running.
  • int wait_threads () β€” waits for all the threads to complete.
  • Ref< ThreadLock > new_lock () β€” returns a local object.
  • ThreadGrp * clone (int nthread=-1) β€” creates a ThreadGrp like the current one.

🫢 Additional Inherited Members 🫢

This heading is present in the original, but no extra members are listed under it on this page. So we are not inventing any. Periodt.

πŸ¦‹ DETAILED DESCRIPTION πŸ¦‹

The ProcThreadGrp class privides a concrete thread group appropriate for an environment where there is only one thread. Yes, it says it twice in the original, and we're keeping the whole vibe intact. (Also privides againβ€”original spelling, not ours 😭)

πŸŽ€ MEMBER FUNCTION DOCUMENTATION πŸŽ€

ThreadGrp* sc::ProcThreadGrp::clone (int nthread = -1) [virtual]

Creates a ThreadGrp like the current one. If nthread is given, the new ThreadGrp will attempt to support that number of threads, but the actual number supported may be less. If nthread is -1, the number of threads in the current group will be used.

Reimplemented from sc::ThreadGrp.

int sc::ProcThreadGrp::start_threads () [virtual]

Starts the threads running. Thread 0 will be run by the thread that calls start_threads.

Implements sc::ThreadGrp.

int sc::ProcThreadGrp::wait_threads () [virtual]

Wait for all the threads to complete. This must be called before start_threads is called again or the object is destroyed.

Bestie, this one is a real mustβ€”call it before start_threads runs again, or before the object gets destroyed. No skipping the wait 🫢

Implements sc::ThreadGrp.

⭐ AUTHOR ⭐

This page was generated automatically by Doxygen for MPQC from the source code.


That’s the whole sc::ProcThreadGrp(3) page, bestie! Source/version check: MPQC source, version 2.3.1, dated Sun Oct 4 2020. Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from