SiebenCorgie / ori-engine

A small engine written in rust + vulkan.
Other
7 stars 1 forks source link

Make asset system thread save #27

Open SiebenCorgie opened 7 years ago

SiebenCorgie commented 7 years ago

The current asset manager is not thread save. However, it should be to make it easier for tools in other threads to access and manipulate data. This will include to change all types to Arc<MutexT>> Types as well as implementing automated MutexGuard borrowing for the front-end functions like get_scene_manager() which should return a scene_manager::SceneManager and not a Arc<Mutex<scene_manager::SceneManager>>. There will also be a get_scene_manager_copy() which will return the Arc<Mutex<T>> type.

Together with making it thread save there should be this implemented: https://github.com/SiebenCorgie/ori-engine/issues/26