Open topic with navigation

TIBCO Rendezvous® 8.8.0

# tibrvQueue_Destroy()

Function

## Declaration

    tibrv_status tibrvQueue_Destroy(
        tibrvQueue    eventQueue);
    tibrv_status tibrvQueue_DestroyEx(
        tibrvQueue           eventQueue,
        tibrvQueueOnComplete completionFn,
        void*                closure);

## Purpose

Destroy an event queue.

## Remarks

When a queue is destroyed, events that remain in the queue are discarded.

When a program destroys a queue, all events associated with the queue become invalid. These invalid events still occupy storage until the program explicitly destroys them, or until the program calls tibrv_Close().

Parameter | Description
`eventQueue` | Destroy this queue.
`completionFn` | Rendezvous software runs this function immediately after all event callback functions dispatched from the queue have completed. If no event callback functions are running when the queue is destroyed, the destroy call runs the completion function before returning. If this parameter is `NULL`, `tibrvQueue_DestroyEx()` does not run a completion function; instead, its behavior is the same as tibrvQueue_Destroy().
`closure` | Pass this closure argument to the completion function.

## See Also

tibrvQueueOnComplete

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2025. Cloud Software Group, Inc. All Rights Reserved.