sc::ThreadGrp(3)
π sc::ThreadGrp(3) β MPQC manual page, bestie π
Okay so this is the MPQC manual page for sc::ThreadGrp(3). Itβs giving abstract base class energy, and it manages separate threads of control. No cap. π§΅β¨
β¨ NAME β¨
sc::ThreadGrp β The ThreadGrp abstract class provides a means to manage separate threads of control. π
πΈ SYNOPSIS πΈ
#include <thread.h>
Inherits sc::DescribedClass.
Inherited by sc::ProcThreadGrp, sc::PthreadThreadGrp, and sc::PumaThreadGrp.
π Public Member Functions
ThreadGrp (const Ref< KeyVal > &)β constructor from aKeyValreference. The page gives the signature and doesnβt add extra description. πThreadGrp (const ThreadGrp &, int nthread=-1)β another constructor, withnthreaddefaulting to-1. Again, no extra behavior is described here. π¦virtual void add_thread (int threadnum, Thread *thread)β assigns aThreadobject to each thread. If0is assigned to a thread, that thread will be skipped. β¨virtual void add_thread (int threadnum, Thread *thread, int priority)β likeadd_thread(threadnum, thread), but you also assign a priority that the thread is to use. Heads up: this member is primarily for experimentation, and thepriorityargument is currently not well defined and ignored. πint nthread () constβ the number of threads that will be run bystart_threads. π₯void delete_threads ()β listed with no extra description, bestie. Thatβs the whole line. π«Άvirtual int start_threads ()=0β starts the threads running. Pure virtual. πvirtual int wait_threads ()=0β waits for all the threads to complete. Pure virtual. πvirtual Ref< ThreadLock > new_lock ()=0β return a local object. Pure virtual. πvirtual ThreadGrp * clone (int nthread=-1)β create aThreadGrplike the current one, withnthreaddefaulting to-1. π§
π Static Public Member Functions
static void set_default_threadgrp (const Ref< ThreadGrp > &)β static function, listed with this exact signature. β¨static ThreadGrp * get_default_threadgrp ()β static function, listed with this exact signature. βstatic ThreadGrp * initial_threadgrp (int &argc, char **argv)β static function, listed with this exact signature. π¦
The page doesnβt give extra descriptions under these static functions, so Iβm not inventing lore. π
π Protected Attributes
Thread ** threads_β protected attribute, spelled exactly like this. π§΅int nthread_β protected attribute, spelled exactly like this. π’
π§ Additional Inherited Members π§
This heading is here, but the page doesnβt list any extra inherited members under it. Thatβs the tea. π΅
π Detailed Description π
The ThreadGrp abstract class provides a means to manage separate threads of control. Itβs the base-class blueprint for wrangling separate threads, and thatβs the whole vibe. π§΅β¨
π«Ά Member Function Documentation π«Ά
virtual void sc::ThreadGrp::add_thread (int threadnum, Thread * thread) β [virtual]
Assigns a Thread object to each thread. If 0 is assigned to a thread, then that thread will be skipped. π
Reimplemented in sc::PthreadThreadGrp.
Referenced by sc::PthreadThreadGrp::add_thread().
virtual void sc::ThreadGrp::add_thread (int threadnum, Thread * thread, int priority) β [virtual]
Like add_thread(threadnum, thread), but assign a priority that the thread is to use. The member is primarily for experimentation; the priority argument is currently not well defined and ignored. π
Reimplemented in sc::PthreadThreadGrp.
virtual ThreadGrp* sc::ThreadGrp::clone (int nthread = -1) β [virtual]
Create 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 in sc::ProcThreadGrp, and sc::PthreadThreadGrp.
virtual int sc::ThreadGrp::start_threads () β [pure virtual]
Starts the threads running. Thread 0 will be run by the thread that calls start_threads. π
Implemented in sc::ProcThreadGrp, sc::PthreadThreadGrp, and sc::PumaThreadGrp.
virtual int sc::ThreadGrp::wait_threads () β [pure virtual]
Wait for all the threads to complete. This must be called before start_threads is called again or the object is destroyed. π
Implemented in sc::ProcThreadGrp, sc::PthreadThreadGrp, and sc::PumaThreadGrp.
π Author π
Generated automatically by Doxygen for MPQC from the source code. π
And thatβs the whole page, bestie! π The footer/source vibe says Version 2.3.1, Sun Oct 4 2020, and the page is sc::ThreadGrp(3) from MPQC. Stay iconic. π§΅β¨
π¦ where this page comes from
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms