Skip to content

Check public functions in the engine are threadsafe.  #409

@se5a

Description

@se5a

We're getting a couple of crashes while some menus/windows are open while the game is running,
I suspect due to the ui thread checking the dictionary for a key, then the engine thread removing the dictionary entry before the ui thread has a chance to then look up whatever it was looking for.

We should probably go through and make any functions that we're not calling from the UI be internal.
Then go through each of the public functions that the UI is calling and ensure it's not going to cause problems.
CargoMath.cs is probably the biggest culprit right now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions