Skip to content

Commit ea19f0c

Browse files
committed
Fixed Thread Safety Issue in destroy_rx_thread Refs #CA-451
1 parent 62995c3 commit ea19f0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/SourceVITA49.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,7 @@ void SourceVITA49_i::setStartOfYear() {
10681068
// Threading Functions //
10691069
/////////////////////////
10701070
void SourceVITA49_i::destroy_rx_thread() {
1071+
boost::mutex::scoped_lock runLock(teardown_lock);
10711072
if (_receiveThread != NULL) {
10721073
curr_attach.attach = false;
10731074
runThread = false;

0 commit comments

Comments
 (0)