/** * Sets manual cleanup flag for a space. * * Manual cleanup flag marks a space as eligible for manual thread data cleanup. * This function should be called for every space object right after creation in * case if ODE has been initialized with {@code dInitFlagManualThreadCleanup} flag. * * Failure to set manual cleanup flag for a space may lead to some resources * remaining leaked until the program exit. * * @param space the space to modify * @param mode 1 for manual cleanup mode and 0 for default cleanup mode * @see #dSpaceGetManualCleanup(DSpace) * @see ApiCppOdeInit#dInitODE2(int) */ //ODE_API public static void dSpaceSetManualCleanup (DSpace space, int mode) { space.setManualCleanup(mode); }
/** * Sets manual cleanup flag for a space. * * Manual cleanup flag marks a space as eligible for manual thread data cleanup. * This function should be called for every space object right after creation in * case if ODE has been initialized with {@code dInitFlagManualThreadCleanup} flag. * * Failure to set manual cleanup flag for a space may lead to some resources * remaining leaked until the program exit. * * @param space the space to modify * @param mode 1 for manual cleanup mode and 0 for default cleanup mode * @see #dSpaceGetManualCleanup(DSpace) * @see ApiCppOdeInit#dInitODE2(int) */ //ODE_API public static void dSpaceSetManualCleanup (DSpace space, int mode) { space.setManualCleanup(mode); }