-
Notifications
You must be signed in to change notification settings - Fork 2
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
TODO: Possible Race Condition in Restore Checkpoint #29
Comments
Thanks for pulling this up here Marcus! We should consider what we want the synch model for the MemoryManger to be. It's a bit ad-hoc in the current Trick, and I think we need to think about it a little harder. We definitely need some synch, since in Trick the memory manager is often accessed via variable server session or data recording threads, so we should work backwards from that and figure out some requirements. Also - I want to stop using pthreads directly and use the C++ threading library, which gives us things like RAII style locking. |
Just read up on RAII and it looks interesting! If we upgrade to C++ threads, would we also need to upgrade the rest of Trick? I'm pretty sure we'll get some pushback on the change if that's the case. |
Yeah probably, but it should be contained to Trick internals so hopefully it wouldn't cause issues with our customers. |
Yeah you're probably right |
icg2/DataTypes/src/MemoryManagement/MemoryManager.cpp
Lines 191 to 192 in aad7ec8
TODO comment turned to issue
The text was updated successfully, but these errors were encountered: