diff options
author | Fred Deng <fred.deng@soundunited.com> | 2018-04-27 12:56:19 +1000 |
---|---|---|
committer | Fred Deng <fred.deng@soundunited.com> | 2018-04-27 12:56:19 +1000 |
commit | 1cb01252c0b64b572c9d567a7c3a145d364dd12b (patch) | |
tree | 9316b79cfb0b23198dde0f8fb10a23c64f44174b /daemons/gptp/common/common_port.cpp | |
parent | 15fba8379f3a9e4ff0428cc3e4292aad40e485b1 (diff) | |
download | Open-AVB-1cb01252c0b64b572c9d567a7c3a145d364dd12b.tar.gz |
Change to using addEventTimer and deleteEventTimer without lock.
Diffstat (limited to 'daemons/gptp/common/common_port.cpp')
-rw-r--r-- | daemons/gptp/common/common_port.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/daemons/gptp/common/common_port.cpp b/daemons/gptp/common/common_port.cpp index c11f5bef..dc47d9d2 100644 --- a/daemons/gptp/common/common_port.cpp +++ b/daemons/gptp/common/common_port.cpp @@ -298,8 +298,8 @@ void CommonPort::startSyncReceiptTimer { clock->getTimerQLock(); syncReceiptTimerLock->lock(); - clock->deleteEventTimerLocked( this, SYNC_RECEIPT_TIMEOUT_EXPIRES ); - clock->addEventTimerLocked + clock->deleteEventTimer( this, SYNC_RECEIPT_TIMEOUT_EXPIRES ); + clock->addEventTimer ( this, SYNC_RECEIPT_TIMEOUT_EXPIRES, waitTime ); syncReceiptTimerLock->unlock(); clock->putTimerQLock(); @@ -309,7 +309,7 @@ void CommonPort::stopSyncReceiptTimer( void ) { clock->getTimerQLock(); syncReceiptTimerLock->lock(); - clock->deleteEventTimerLocked( this, SYNC_RECEIPT_TIMEOUT_EXPIRES ); + clock->deleteEventTimer( this, SYNC_RECEIPT_TIMEOUT_EXPIRES ); syncReceiptTimerLock->unlock(); clock->putTimerQLock(); } |