[#BloombergLP-balb-PipeTaskManager-2constructor-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/PipeTaskManager.adoc[PipeTaskManager]::PipeTaskManager :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<balb_pipetaskmanager.h>` Create a task manager having no message handlers. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. Message handlers can be supplied using the return value of the `controlManager` method. If that return value is used to create other `PipeTaskManager` objects, this object (the owner of the internal `ControlManager` must outlive those other objects. The `start` method must be called successfully before messages will be received (on a separate thread created by `start`). Note that the name of the message pipe is supplied as an argument to `start`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/balb/PipeTaskManager/2constructor-02.adoc[PipeTaskManager](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/balb/PipeTaskManager/2constructor-02.adoc[_» more..._]# Create a task manager that uses the handlers of the specified shared `controlManager`. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The `start` method must be called successfully before messages will be received (on a separate thread created by `start`). Note that the name of the message pipe is supplied as an argument to `start`. Also note that the handlers of `controlManager` can be manipulated via the return value of the `controlManager` method. Finally note that the allocator of `controlManger` need not equal `basicAllocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/balb/PipeTaskManager/2constructor-04.adoc[PipeTaskManager]( xref:bsl/shared_ptr-0a.adoc[bsl::shared_ptr<ControlManager>]& controlManager, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/balb/PipeTaskManager/2constructor-04.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#