-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Step thread safety improvement #307
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AtheneNoctuaPt
added
2. Bug
Something isn't working
1. Data Exchange
Import/Export or iterating of the CAD data
labels
Jan 30, 2025
AtheneNoctuaPt
added a commit
to AtheneNoctuaPt/OCCT
that referenced
this pull request
Jan 30, 2025
Mutex is added to XSControl_WorkSession to prevent data races during reading and writing.
AtheneNoctuaPt
force-pushed
the
CR33657
branch
from
January 30, 2025 13:46
0ecd385
to
e0d8348
Compare
AtheneNoctuaPt
changed the title
Step thread safety improvement #177
Step thread safety improvement #307
Jan 30, 2025
AtheneNoctuaPt
added a commit
to AtheneNoctuaPt/OCCT
that referenced
this pull request
Jan 30, 2025
Mutex is added to XSControl_WorkSession to prevent data races during reading and writing.
AtheneNoctuaPt
force-pushed
the
CR33657
branch
from
January 30, 2025 14:12
e0d8348
to
518c875
Compare
dpasukhi
requested changes
Jan 30, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here a few remarks and please add some tests with public CAD files to validate your new commands.
Handle(XSControl_Controller) myController; | ||
Handle(XSControl_TransferReader) myTransferReader; | ||
Handle(XSControl_TransferWriter) myTransferWriter; | ||
XSControl_WorkSessionMap myContext; | ||
Handle(XSControl_Vars) myVars; | ||
|
||
static Standard_Mutex myGlobalMutex; //!< Mutex to prevent data races during reading and writing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please hide it into singleton inside CXX
AtheneNoctuaPt
added a commit
to AtheneNoctuaPt/OCCT
that referenced
this pull request
Jan 30, 2025
Mutex is added to XSControl_WorkSession to prevent data races during reading and writing. Tests are added to check the behavior of STEP readers/writers in multithreading environment.
AtheneNoctuaPt
force-pushed
the
CR33657
branch
from
January 30, 2025 16:16
518c875
to
9e6ec7d
Compare
AtheneNoctuaPt
added a commit
to AtheneNoctuaPt/OCCT
that referenced
this pull request
Jan 30, 2025
Mutex is added to XSControl_WorkSession to prevent data races during reading and writing. Tests are added to check the behavior of STEP readers/writers in multithreading environment.
AtheneNoctuaPt
force-pushed
the
CR33657
branch
from
January 30, 2025 16:18
9e6ec7d
to
52c62ab
Compare
Mutex is added to XSControl_WorkSession to prevent data races during reading and writing. Tests are added to check the behavior of STEP readers/writers in multithreading environment.
AtheneNoctuaPt
force-pushed
the
CR33657
branch
from
January 30, 2025 16:20
52c62ab
to
cc4607e
Compare
dpasukhi
changed the title
Step thread safety improvement #307
Step thread safety improvement
Jan 30, 2025
dpasukhi
approved these changes
Jan 30, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Mutex is added to XSControl_WorkSession to prevent data races during reading and writing.