F.46 CtreeFlushFileXtd
Flush cache for specific files and groups of files.
Short Name
CTFLUSHX
TYPE
Function
DECLARATION
LONG CtreeFlushFileXtd(COUNT filno, NINT mode, LONG parm)DESCRIPTION
CtreeFlushFileXtd extends CtreeFlushFile with mode and parm values to allow applications to flush cache for specific files and groups of files. Calling CtreeFlushFileXtd with mode and parm set to zero is identical to calling CtreeFlushFile(filno).
This function call causes files to be flushed by an asynchronous thread when the server physically closes the files.
The following mode options may be appropriately mixed and matched:
Not all combinations of these modes make sense. CtreeFlushFileXtd eliminates conflicting modes before attempting the flush. For example, supplying a valid filno and then specifying ctFLUSHX_TRAN, ctFLUSHX_NONTRAN, ctFLUSHX_SYSALL, and/or ctFLUSHX_USRALL is inconsistent. In this case the filno is used and the conflicting mode option is ignored.
RETURN
CtreeFlushFileXtd returns the handle, a positive LONG value, associated with a successfully launched asynchronous thread (if mode contains ctFLUSHX_ASYNC), NO_ERROR if CtreeFlushFileXtd completes successfully (no thread launched), or a negative error code in the case of a problem.
LIMITATIONS
The only option available with stand-alone applications is ctFLUSHX_ISAM.
|
FairCom Corporation www.faircom.com |