![]()  | 
![]()  | 
![]()  | 
![]()  | 
Destroy an asynchronous message channel
![]()  | 
Asynchronous messaging is an experimental feature; for information about the use of experimental software, see the Commercial Software License Agreement (CSLA) or Partner Software License Agreement (PSLA) in the Licensing area of our website, http://www.qnx.com/legal/licensing/. | 
#include <sys/asyncmsg.h> int asyncmsg_channel_destroy( int chid );
libasyncmsg
Use the -l asyncmsg option to qcc to link against this library.
The asyncmsg_channel_destroy() function destroys the asynchronous message channel specified by chid. If you provided a callback function when you called asyncmsg_channel_create(), asyncmsg_channel_destroy() invokes the callback to free any outstanding receive buffers; otherwise, asyncmsg_channel_destroy() uses free().
EOK, or -1 if an error occurred (errno is set).
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | Yes | 
asyncmsg_channel_create(), asyncmsg_connect_attach(), asyncmsg_connect_attr(), asyncmsg_connect_detach(), asyncmsg_flush(), asyncmsg_free(), asyncmsg_get(), asyncmsg_malloc(), asyncmsg_put(), asyncmsg_putv()
Asynchronous Messaging Technote
![]()  | 
![]()  | 
![]()  | 
![]()  |