a0Init()

Begin Athapascan-0 startup.


Syntax

a0tError a0Init(
int *argcp,
char *(*argvp)[] );

Arguments

Namerd/wrDescription
argcp write Pointer to C main program arguments counter .
argvp write Pointer to C main program arguments table pointer.

Description

This function begins the startup phase of an Athapascan-0 parallel program. It starts all the Athapascan-0 modules --- all the initial tables are filled and all the servers are started. This function must be called before any other Athapascan-0 functions. All program static objects such as services, synchronisation objects, etc.. must be declared between this call and the call to a0InitCommit(). Thread creation and synchronisation are not allowed in the startup phase.

The arguments used by Athapascan-0 and its lower levels are extracted from the argvp table.


Return Values

If an error condition occurs, it returns the error code, otherwise it returns A0ErrOk. Possible values are as follows:
Error CodeDescription
A0Err...Some error occurred.
A0ErrOkSuccessful completion.

See Also

a0InitCommit() a0Terminate() a0Abort()