Thread: Add name parameter
For debugging purposes, threads can be assigned a name, which eases distinguishing between them in e.g. htop or gdb. This uses a Linux-specific API for now which is limited to 15 characters (+ null terminator), so truncation is done and names for existing thread instantiations were chosen to be consise. [Kieran: Apply checkstyle suggestions, rebase on proxy rework] Signed-off-by: Schulz, Andreas <andreas.schulz2@karlstorz.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
6af90deaf2
commit
559128b1f1
@@ -115,7 +115,7 @@ private:
|
||||
|
||||
VirtualCameraData::VirtualCameraData(PipelineHandler *pipe,
|
||||
const std::vector<Resolution> &supportedResolutions)
|
||||
: Camera::Private(pipe)
|
||||
: Camera::Private(pipe), Thread("VirtualCamera")
|
||||
{
|
||||
config_.resolutions = supportedResolutions;
|
||||
for (const auto &resolution : config_.resolutions) {
|
||||
|
||||
Reference in New Issue
Block a user