Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Thread Class Referenceabstract

#include <threads.h>

Inheritance diagram for Thread:
Inheritance graph
[legend]

Public Member Functions

void join ()
 
void start ()
 
 Thread ()
 
virtual ~Thread ()
 

Public Attributes

int my_id
 
TSPmytsp
 
int start_node
 

Protected Member Functions

virtual void run ()=0
 

Private Member Functions

Threadoperator= (const Thread &rhs)
 
 Thread (const Thread &arg)
 

Static Private Member Functions

static void * exec (void *thr)
 

Private Attributes

pthread_t _id
 

Detailed Description

Definition at line 20 of file threads.h.

Constructor & Destructor Documentation

◆ Thread() [1/2]

Thread::Thread ( const Thread arg)
private

◆ Thread() [2/2]

Thread::Thread ( )
inline

Definition at line 42 of file threads.h.

◆ ~Thread()

virtual Thread::~Thread ( )
inlinevirtual

Definition at line 49 of file threads.h.

Member Function Documentation

◆ exec()

void * Thread::exec ( void *  thr)
staticprivate

Definition at line 32 of file threads.cpp.

◆ join()

void Thread::join ( )

Definition at line 16 of file threads.cpp.

◆ operator=()

Thread& Thread::operator= ( const Thread rhs)
private

◆ run()

virtual void Thread::run ( )
protectedpure virtual

Implemented in MyThread.

◆ start()

void Thread::start ( )

Definition at line 5 of file threads.cpp.

Member Data Documentation

◆ _id

pthread_t Thread::_id
private

Definition at line 24 of file threads.h.

◆ my_id

int Thread::my_id

Definition at line 67 of file threads.h.

◆ mytsp

TSP* Thread::mytsp

Definition at line 64 of file threads.h.

◆ start_node

int Thread::start_node

Definition at line 61 of file threads.h.


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


co_scan
Author(s):
autogenerated on Mon Feb 28 2022 23:00:58