MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ unregister_process_hook()

void MayaFlux::Core::SubsystemManager::unregister_process_hook ( SubsystemType  type,
const std::string &  name 
)

Remove a previously registered processing hook.

Parameters
typeSubsystemType the hook is attached to
nameUnique identifier of the hook to remove

Removes the named hook from the specified subsystem's processing cycle.

Definition at line 255 of file SubsystemManager.cpp.

256{
257 auto handle = get_validated_handle(type);
258 if (!handle)
259 return;
260
261 if (handle->pre_process_hooks.erase(name) == 0) {
262 handle->post_process_hooks.erase(name);
263 }
264}
SubsystemProcessingHandle * get_validated_handle(SubsystemType type) const
Get processing handle with validation.

References get_validated_handle().

+ Here is the call graph for this function: