Skip to content

Commit

Permalink
Set file+line for epicsMutex
Browse files Browse the repository at this point in the history
Makes the output of epicsMutexShowAll more useful wrt. libca.
  • Loading branch information
mdavidsaver committed Jun 26, 2019
1 parent ede52d9 commit 5b09bb6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/ca/src/client/ca_client_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ),
Expand Down
1 change: 1 addition & 0 deletions modules/ca/src/client/repeaterSubscribeTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
}
Expand Down
1 change: 1 addition & 0 deletions modules/libcom/src/misc/ipAddrToAsciiAsynchronous.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ ipAddrToAsciiEngine & ipAddrToAsciiEngine::allocate ()
}

ipAddrToAsciiGlobal::ipAddrToAsciiGlobal () :
mutex(__FILE__, __LINE__),
thread ( *this, "ipToAsciiProxy",
epicsThreadGetStackSize(epicsThreadStackBig),
epicsThreadPriorityLow ),
Expand Down
1 change: 1 addition & 0 deletions modules/libcom/src/timer/timerQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ),
Expand Down
1 change: 1 addition & 0 deletions modules/libcom/src/timer/timerQueueActiveMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "timerPrivate.h"

timerQueueActiveMgr::timerQueueActiveMgr ()
:mutex(__FILE__, __LINE__)
{
}

Expand Down

0 comments on commit 5b09bb6

Please sign in to comment.