bps_channel_get_active()

Returns the thread's active channel ID.

Synopsis:

#include <bps/bps.h>
 
BPS_API int bps_channel_get_active(void)

Arguments:

Library:

libbps

Description:

Use this function when a thread needs to communicate its channel ID to another thread that uses the bps_channel_push_event() function.

Returns:

The active channel ID for the calling thread.