FairCom Corporation


F.43 CtreeAsynchronous


Deals with asynchronous threads launched by an application.

Short Name

CTASYNC

TYPE

Utility

DECLARATION

LONG CtreeAsynchronous(LONG handle, NINT mode, VRLEN bufsiz, pTEXT bufptr)

DESCRIPTION

CtreeAsynchronous deals with asynchronous threads (including flush threads) launched by an application. CtreeAsynchronous can be used to determine the status of an asynchronous thread or to cancel the thread.

The bufsiz and bufptr parameters are ignored now. They are intended for future use if it is desirable to return information stored by an asynchronous thread.

At this point, only the thread that launched the asynchronous thread can call CtreeAsynchronous.

RETURN

Value
Symbolic Constant
Description
0
ctASYNC_completed
Thread completed successfully.
1
ctASYNC_cancelled
Thread cancelled.
2
ctASYNC_notfound
handle not found.
3
ctASYNC_badmode
mode is bad.
4
ctASYNC_running
Thread is running.
negative
negative value
Negative of c-tree error code that terminated the thread.

See Appendix A "c-tree Plus Error Codes" of the c-tree Plus Programmer's Reference Guide for a complete listing of valid c-tree Plus error values.


FairCom Corporation
www.faircom.com