arades79 / hyperdome

the safest place to reach out
Other
27 stars 1 forks source link

Threadsafe server data access #109

Closed arades79 closed 1 year ago

arades79 commented 1 year ago

Summary

Change some of the core data in server. Use thread locks when doing sensitive things to shared storage. Change api slightly to simplify messaging logic. Fix minor bugs in client and server where None might accidentally be accessed. Move some initialization code to simplify usage and reduce code spread.

Closes #100, #106

Tested with 1 user and 1 counselor which isn't really sufficient to test if locking is working, but I'm going to re-write the whole API this week anyway so I'll reserve testing energy for then.

Checklist