inference-engine/thirdparty/movidius/XLink/shared/src/XLinkData.c
// Just like open stream, when closeStream is called
// on the local size we are resetting the writeSize
// and on the remote side we are freeing the read buffer
Just like open stream, when closeStream is called
on the local size we are resetting the writeSize
and on the remote side we are freeing the read buffer
Just like open stream when closeStream is called on the local size we are resetting the writeSize and on the remote side we are freeing the read buffer
XLinkError_t XLinkCloseStream(streamId_t streamId)
{
    xLinkDesc_t* link = NULL;
    XLINK_RET_IF(getLinkByStreamId(streamId, &link));
    streamId = EXTRACT_STREAM_ID(streamId);
    xLinkEvent_t event = {0};
    XLINK_INIT_EVENT(event, streamId, XLINK_CLOSE_STREAM_REQ,
        0, NULL, link->deviceHandle);
    XLINK_RET_IF(addEvent(&event, XLINK_NO_RW_TIMEOUT));
    return X_LINK_SUCCESS;
}
XLinkError_t XLinkCloseStream ( streamId_t streamId ) { xLinkDesc_t * link = NULL ; XLINK_RET_IF ( getLinkByStreamId ( streamId , & link ) ) ; streamId = EXTRACT_STREAM_ID ( streamId ) ; xLinkEvent_t event = { 0 } ; XLINK_INIT_EVENT ( event , streamId , XLINK_CLOSE_STREAM_REQ , 0 , NULL , link -> deviceHandle ) ; XLINK_RET_IF ( addEvent ( & event , XLINK_NO_RW_TIMEOUT ) ) ; return X_LINK_SUCCESS ; }
Just like open stream, when closeStream is called
on the local size we are resetting the writeSize
and on the remote side we are freeing the read buffer
Just like open stream when closeStream is called on the local size we are resetting the writeSize and on the remote side we are freeing the read buffer