Product Documentation

FairCom ISAM for C

Previous Topic

Next Topic

ctThrdQueueWrite

Write a queue message.

Short Name

ctThrdQueueWrite()

Type

Threading function

Declaration

NINT ctThrdQueueWrite(NINT qid, pVOID message, NINT msglen)

Description

Write a queue message to the end of the queue specified by queue handle qid. It is permissible for the message to be NULL and/or the msglen to be zero.

Return

Value

Symbolic Constant

Explanation

0

NO_ERROR

Successful function.

90

NQUE_ERR

Invalid qid.

92

QMRT_ERR

Queue memory error.

514

CQUE_ERR

Queue could not be closed.

See FairCom DB Error Codes for a complete listing of valid FairCom DB error values.

Example

See ctmtap.c for ctThrdQueueWrite() examples.

Limitations

Can only be used with a ctThrd library.

See also

ctThrdQueueClose, ctThrdQueueCount, ctThrdLIFOWrite, ctThrdQueueMlen, ctThrdQueueRead, ctThrdQueueOpen

TOCIndex