summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfreddeng <freddeng78@yahoo.com.au>2018-04-18 22:51:57 +1000
committerGitHub <noreply@github.com>2018-04-18 22:51:57 +1000
commit15fba8379f3a9e4ff0428cc3e4292aad40e485b1 (patch)
treeb71a51162d0cb410556ea5c22f9ab3c842e574b0
parent7d0f6655b04ef9af9a74319997ead5e5a1dcc2be (diff)
downloadOpen-AVB-15fba8379f3a9e4ff0428cc3e4292aad40e485b1.tar.gz
Update 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