MayaFlux 0.4.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 332 of file SubsystemManager.cpp.

333{
334 auto handle = get_validated_handle(type);
335 if (!handle)
336 return;
337
338 if (handle->pre_process_hooks.erase(name) == 0) {
339 handle->post_process_hooks.erase(name);
340 }
341}
SubsystemProcessingHandle * get_validated_handle(SubsystemType type) const
Get processing handle with validation.

References get_validated_handle().

+ Here is the call graph for this function: