[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

 

StAsyncOperation



Overview:

StAsyncOperation is a PowerPlant helper class used by the networking classes to delay thread execution while an asynchronous operation executes.

Methods :

The methods in this class are:

 

StAsyncOperation()  
~StAsyncOperation()  
AbortOperation()  
GetThreadOperation()  
Int_AsyncResume()  
WaitForResult()  

Data Members:

The data members in this class are:

 

mThread  
mResult  

Source files:

(Networking Classes)

UNetworking.h

UNetworking.cp

See also:

LInterruptSafeList

LMacTCPDNSOperation

StMacTCPOperation

StMacTCPUDPOperation

StOpenTptOperation

StAsyncOperation()

Purpose:

The constructor creates the object.

Access :

Public

Prototype:

StAsyncOperation();

~StAsyncOperation()

Purpose:

The destructor destroys the object.

Access :

Public

Prototype:

~StAsyncOperation();

AbortOperation()

Purpose:

Abort the operation.

Access :

Virtual, Public

Prototype:

virtual void AbortOperation();
Parameters:

None

Return:

None

GetThreadOperation()

Purpose:

Return the operation object.

Access :

Static, Public

Prototype:

static StAsyncOperation *GetThreadOperation(
   LThread *inThread );
Parameters:

This method has the following parameter:

 

LThread*  
inThread  
The thread.  

Return:

The operation object.

Int_AsyncResume()

Purpose:

This routine might be called at interrupt time

IMPORTANT: If you override this operation, be sure to override AbortOperation() as well if necessary.

Access :

Virtual, Public

Prototype:

virtual void Int_AsyncResume( OSStatus	inResult );
Parameters:

This method has the following parameter:

 

OSStatus  
inResult  
The status code.  

Return:

None

WaitForResult()

Purpose:

Wait for the result by blocking this thread.

Access :

Public

Prototype:

void WaitForResult();
Parameters:

None

Return:

None

mThread

Purpose:

Storage for the thread.

Access :

Protected

Prototype:

LThread* mThread;

mResult

Purpose:

The storage for the status code.

Access :

Protected

Prototype:

OSStatus mResult;

sPendingOperations

Purpose:

A list of the pending operations.

Access :

static Protected

Prototype:

static LInterruptSafeList *	sPendingOperations;

 


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: July 21, 2000