Set file+line for epicsMutex

Makes the output of epicsMutexShowAll more useful wrt. libca.
This commit is contained in:
Michael Davidsaver
2019-04-03 15:18:18 -07:00
parent ede52d96b8
commit 5b09bb6e71
5 changed files with 6 additions and 0 deletions

View File

@@ -67,6 +67,8 @@ cacService * ca_client_context::pDefaultService = 0;
epicsMutex * ca_client_context::pDefaultServiceInstallMutex;
ca_client_context::ca_client_context ( bool enablePreemptiveCallback ) :
mutex(__FILE__, __LINE__),
cbMutex(__FILE__, __LINE__),
createdByThread ( epicsThreadGetIdSelf () ),
ca_exception_func ( 0 ), ca_exception_arg ( 0 ),
pVPrintfFunc ( errlogVprintf ), fdRegFunc ( 0 ), fdRegArg ( 0 ),

View File

@@ -37,6 +37,7 @@ repeaterSubscribeTimer::repeaterSubscribeTimer (
epicsMutex & cbMutexIn, cacContextNotify & ctxNotifyIn ) :
timer ( queueIn.createTimer () ), iiu ( iiuIn ),
cbMutex ( cbMutexIn ),ctxNotify ( ctxNotifyIn ),
stateMutex(__FILE__, __LINE__),
attempts ( 0 ), registered ( false ), once ( false )
{
}

View File

@@ -171,6 +171,7 @@ ipAddrToAsciiEngine & ipAddrToAsciiEngine::allocate ()
}
ipAddrToAsciiGlobal::ipAddrToAsciiGlobal () :
mutex(__FILE__, __LINE__),
thread ( *this, "ipToAsciiProxy",
epicsThreadGetStackSize(epicsThreadStackBig),
epicsThreadPriorityLow ),

View File

@@ -25,6 +25,7 @@ const double timerQueue :: exceptMsgMinPeriod = 60.0 * 5.0; // seconds
epicsTimerQueue::~epicsTimerQueue () {}
timerQueue::timerQueue ( epicsTimerQueueNotify & notifyIn ) :
mutex(__FILE__, __LINE__),
notify ( notifyIn ),
pExpireTmr ( 0 ),
processThread ( 0 ),

View File

@@ -20,6 +20,7 @@
#include "timerPrivate.h"
timerQueueActiveMgr::timerQueueActiveMgr ()
:mutex(__FILE__, __LINE__)
{
}