summaryrefslogtreecommitdiff
path: root/daemons/gptp/common/common_port.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'daemons/gptp/common/common_port.cpp')
-rw-r--r--daemons/gptp/common/common_port.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/daemons/gptp/common/common_port.cpp b/daemons/gptp/common/common_port.cpp
index 268bc62d..c11f5bef 100644
--- a/daemons/gptp/common/common_port.cpp
+++ b/daemons/gptp/common/common_port.cpp
@@ -296,18 +296,22 @@ bool CommonPort::restoreSerializedState
void CommonPort::startSyncReceiptTimer
( long long unsigned int waitTime )
{
+ clock->getTimerQLock();
syncReceiptTimerLock->lock();
clock->deleteEventTimerLocked( this, SYNC_RECEIPT_TIMEOUT_EXPIRES );
clock->addEventTimerLocked
( this, SYNC_RECEIPT_TIMEOUT_EXPIRES, waitTime );
syncReceiptTimerLock->unlock();
+ clock->putTimerQLock();
}
void CommonPort::stopSyncReceiptTimer( void )
{
+ clock->getTimerQLock();
syncReceiptTimerLock->lock();
clock->deleteEventTimerLocked( this, SYNC_RECEIPT_TIMEOUT_EXPIRES );
syncReceiptTimerLock->unlock();
+ clock->putTimerQLock();
}
void CommonPort::startSyncIntervalTimer