Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Update connections.cc #1021

Merged
merged 2 commits into from
Feb 8, 2022
Merged

Update connections.cc #1021

merged 2 commits into from
Feb 8, 2022

Conversation

meahoibm
Copy link
Member

@meahoibm meahoibm commented Feb 3, 2022

Regression testing executed via robot.

Change to runtime init of version from module init
boost::property_tree::ptree getVersionPropertyTree(){
if (!myV_set){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this implicitly under the control of a global mutex? Or is there a threading issue that might show up handling 50-100 simultaneous connections? I'd suggest using a pthread_once() to control initialization (one thread enters, other threads block until 1st thread finishes).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed up thread once change. Tested with robot regression.

Copy link
Contributor

@tgooding tgooding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants