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
*/
void _block_device(const char *file, int line, DEVICE *dev, int state)
{
- Dmsg3(sd_dbglvl, "block set %d from %s:%d\n", state, file, line);
-
ASSERT(dev->blocked() == BST_NOT_BLOCKED);
dev->set_blocked(state); /* make other threads wait */
dev->no_wait_id = pthread_self(); /* allow us to continue */
+ Dmsg3(sd_dbglvl, "set blocked=%s from %s:%d\n", dev->print_blocked(), file, line);
}
/*