コード例 #1
0
ファイル: wiced_p2p.c プロジェクト: 119/bcm-wiced-sdk
besl_result_t besl_p2p_deinit( p2p_workspace_t* workspace )
{
    /* Stop and delete the P2P thread */
    besl_p2p_stop(workspace);
    host_rtos_join_thread(&p2p_thread);
    host_rtos_delete_terminated_thread(&p2p_thread);
    memset(&p2p_thread, 0, sizeof(p2p_thread));

    /* Delete the message queue */
    host_rtos_deinit_queue( &p2p_message_queue );

    /* Delete the pending outgoing packet queue */
    host_rtos_deinit_queue( &p2p_outgoing_packet_queue );

    return BESL_SUCCESS;
}
コード例 #2
0
ファイル: wiced_rtos.c プロジェクト: humminglab/wiced-project
wiced_result_t wiced_rtos_deinit_queue( wiced_queue_t* queue )
{
    wiced_result_t result;

    malloc_transfer_to_curr_thread( queue->buffer );

    result =  (wiced_result_t) host_rtos_deinit_queue( WICED_GET_QUEUE_HANDLE( queue ) );

    if ( result == WICED_WWD_SUCCESS )
    {
        free( queue->buffer );
        queue->buffer = NULL;
    }

    return result;
}
コード例 #3
0
ファイル: wiced_rtos.c プロジェクト: fishbaoz/wiced-emw3165
wiced_result_t wiced_rtos_deinit_queue( wiced_queue_t* queue )
{
    return host_rtos_deinit_queue( WICED_GET_QUEUE_HANDLE( queue ) );
}