wibble 1.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TestThread::Thread1 Class Reference

#include <thread.test.h>

Inheritance diagram for TestThread::Thread1:
Inheritance graph
[legend]
Collaboration diagram for TestThread::Thread1:
Collaboration graph
[legend]

Public Member Functions

 Thread1 (int &res, int val)
 
- Public Member Functions inherited from wibble::sys::Thread
virtual ~Thread ()
 
void start ()
 Start the thread.
 
void startDetached ()
 Start the thread in the detached state.
 
voidjoin ()
 Join the thread.
 
void detach ()
 Put the thread in the detached state.
 
void cancel ()
 Send a cancellation request to the thread.
 
void kill (int signal)
 Sent a signal to the thread.
 

Protected Member Functions

void * main ()
 Main thread function, executed in the new thread after creation.
 
- Protected Member Functions inherited from wibble::sys::Thread
virtual const charthreadTag ()
 Short tag describing this thread, used in error messages and identification.
 
void testcancel ()
 Callback function used to start the thread.
 

Protected Attributes

int & res
 
int val
 

Constructor & Destructor Documentation

◆ Thread1()

TestThread::Thread1::Thread1 ( int &  res,
int  val 
)
inline

Member Function Documentation

◆ main()

void * TestThread::Thread1::main ( )
inlineprotectedvirtual

Main thread function, executed in the new thread after creation.

When main() exits, the new thread ends and main() result will be the thread exit result

Implements wibble::sys::Thread.

References res, and val.

Member Data Documentation

◆ res

int& TestThread::Thread1::res
protected

Referenced by main().

◆ val

int TestThread::Thread1::val
protected

Referenced by main().


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