-
Notifications
You must be signed in to change notification settings - Fork 8
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
#55 create class for database #55
Conversation
…lled with functionality
Sync this with #44. Locking of database should probably be moved into database methods so the same lock can be used for the database. |
Where should the lock be placed? Inside each function or in something like main (or the method) where we have a switch statement choosing what method to call? |
Each method in database manipulating the map should have the lock code in them, surrounding any calls to the map. |
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.
Great work! The formatting looks good 😋
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.
Nice
Added a class with some methods that we can fill with functionality.
The class is meant to represent the database which holds a key and value.