hpx/naming_base/unmanaged.hpp#

See Public API for a list of names and headers that are part of the public HPX API.

namespace hpx
namespace naming

Functions

hpx::id_type unmanaged(hpx::id_type const &id)#

The helper function hpx::unmanaged can be used to generate a global identifier which does not participate in the automatic garbage collection.

Note

This function allows to apply certain optimizations to the process of memory management in HPX. It however requires the user to take full responsibility for keeping the referenced objects alive long enough.

Parameters

id – [in] The id to generated the unmanaged global id from This parameter can be itself a managed or a unmanaged global id.

Returns

This function returns a new global id referencing the same object as the parameter id. The only difference is that the returned global identifier does not participate in the automatic garbage collection.