LibraryLink`
LibraryLink`

MTensor_disownAll (C Function)

disowns all references to an MTensor that was passed between a library function and the Wolfram Language using shared memory management.

Details

  • Used in C/C++ code in a library function called from the Wolfram Language.

Examples

Basic Examples  (1)

This disowns an MTensor:

MTensor T0;
...
libData->MTensor_disownAll( T0);