When we copy a convertor just copy the minimum required fields. All others will be
initialized in the ompi_convertor_init_for_* functions. This commit was SVN r3604.
Этот коммит содержится в:
родитель
9cb5f05ec1
Коммит
da76409962
@ -814,18 +814,13 @@ OBJ_CLASS_INSTANCE(ompi_convertor_t, ompi_object_t, ompi_convertor_construct, om
|
|||||||
|
|
||||||
inline int ompi_convertor_copy( const ompi_convertor_t* pSrcConv, ompi_convertor_t* pDestConv )
|
inline int ompi_convertor_copy( const ompi_convertor_t* pSrcConv, ompi_convertor_t* pDestConv )
|
||||||
{
|
{
|
||||||
pDestConv->remoteArch = pSrcConv->remoteArch;
|
pDestConv->pDesc = NULL;
|
||||||
pDestConv->flags = pSrcConv->flags;
|
pDestConv->remoteArch = pSrcConv->remoteArch;
|
||||||
pDestConv->pFunctions = pSrcConv->pFunctions;
|
pDestConv->pStack = NULL;
|
||||||
|
pDestConv->stack_pos = 0;
|
||||||
|
pDestConv->available_space = 0;
|
||||||
|
pDestConv->pFunctions = pSrcConv->pFunctions;
|
||||||
|
|
||||||
pDestConv->pStack = NULL;
|
|
||||||
pDestConv->stack_pos = 0;
|
|
||||||
pDestConv->pDesc = NULL;
|
|
||||||
pDestConv->count = 0;
|
|
||||||
pDestConv->converted = 0;
|
|
||||||
pDestConv->bConverted = 0;
|
|
||||||
pDestConv->fAdvance = NULL;
|
|
||||||
pDestConv->memAlloc_fn = NULL;
|
|
||||||
return OMPI_SUCCESS;
|
return OMPI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user