SpecSim Programmer Manual

class CThread : public CUnknown

IThread interface wrapper

Inheritance:

CThread < CUnknown


Private Methods

Jerror done( void )
notify the completion of the thread execution

Jerror getArg( void **n )
get the argument of the top function

Jerror getNative( void **n )
get the native thread object
Jerror getRun( void (**func)( void* ) )
get the address of the top function


Inherited from CUnknown:

Private Methods

Juint addref( void )
Jerror query( const ComIID iid, CUnknown handle )
Juint release( void )

Documentation

The IThread interface abstracts the behavior of the client thread object (user of the native thread API), which essentially defines a set of call back functions for INative.

Jerror getNative( void **n )
get the native thread object.

Returns:
0 if success, -1 if failed
Parameters:
n - placeholder for the returned object

Jerror getArg( void **n )
get the argument of the top function

Returns:
0 if success, -1 if failed
Parameters:
n - placeholder for the returned argument

Jerror getRun( void (**func)( void* ) )
get the address of the top function

Returns:
0 if success, -1 if failed
Parameters:
func - placeholder for the returned address

Jerror done( void )
notify the completion of the thread execution

Returns:
0 if success, -1 if failed


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++