Notifyer: Give conveyor threads a unique name
This commit is contained in:

committed by
mdavidsaver

parent
98e81a542e
commit
a078e03041
@ -6,6 +6,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <queue>
|
||||
#include <cstdio>
|
||||
#include <epicsThread.h>
|
||||
#include <epicsMutex.h>
|
||||
#include <epicsEvent.h>
|
||||
@ -33,8 +34,9 @@ NotifierConveyor::~NotifierConveyor()
|
||||
void NotifierConveyor::start()
|
||||
{
|
||||
if (thread) return;
|
||||
thread = std::tr1::shared_ptr<epicsThread>(new epicsThread(*this,
|
||||
"caProvider::clientNotifier",
|
||||
char name[40];
|
||||
std::sprintf(name, "pva::ca::conveyor %p", this);
|
||||
thread = std::tr1::shared_ptr<epicsThread>(new epicsThread(*this, name,
|
||||
epicsThreadGetStackSize(epicsThreadStackBig),
|
||||
epicsThreadPriorityLow));
|
||||
thread->start();
|
||||
|
Reference in New Issue
Block a user