git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4558
91ce42f0-d328-0410-95d8-
f526ca767f89
void _dunlock(const char *, int); /* in device.c */
#else
void r_dlock(); /* in device.c */
- void r_dunlock(); /* in device.c */
+ void r_dunlock() { dunlock(); }
void dlock() { P(m_mutex); }
void dunlock() { V(m_mutex); }
#endif
return stat;
}
+#ifdef SD_DEBUG_LOCK
void DEVICE::_dlock(const char *file, int line)
{
Dmsg4(sd_dbglvl, "dlock from %s:%d precnt=%d JobId=%u\n", file, line,
V(m_mutex);
}
-#ifdef SD_DEBUG_LOCK
void DEVICE::_r_dunlock(const char *file, int line)
{
this->_dunlock(file, line);
}
-#else
-void DEVICE::r_dunlock()
-{
- this->dunlock();
-}
+
#endif