Index

# XThread

XProcess &rarrXThread

public
- Init
- Run
- constructors/destructors
- XThread
- initiate/terminate a process
- RunThreads
- Terminate

#### Derrived

: public XProcess

## public

###

Init

#### Definition

`

void Init ( void )

virtual void Init ( void )

`

#### Returns

void

###

Run

#### Definition

`

void Run ( )

`

#### Returns

void

## constructors/destructors

###

XThread

contructs a thread. After a thread is constructed, call Run() to make the thread work. You can override method Init() where you can construct windows and so on. After you have called Run() for one or more threads, you must call RunThreads() to initialize this threads (only one time required). WARNING: donīt try to construct windows in the constructor of XThread or a derived class of it! At this time it is not posssible to start threads from a XApplication. To start a thread the starting process must be a thread too.

#### Definition

`

XThread ( )

`

#### Parameters

: -

#### Returns

-

-

## initiate/terminate a process

###

RunThreads

call RunThreads if you have constructed one or more threads. Call RunTreads only one time.

#### Definition

`

void RunThreads ( void )

static void RunThreads ( void )

`

#### Parameters

: -

#### Returns

void

static void

-

###

Terminate

With this method a thread can be terminated. If you call Terminate() the method QueryForQuit() will not be called.

#### Definition

`

void Terminate ( void )

virtual void Terminate ( void )

`

#### Parameters

: -

#### Returns

void

-

Created by AutoDoc, (C) 1996 by Jens von Pilgrim