Handmade Hero»Forums»Code
Oliver Marsh
193 posts / 1 project
Olster1.github.io
Asset Loading Locks Question
Hi,
I was watching video 165 about fixing the asset loading bug, however I got confused why we needed to lock against moving the asset memory header to the front of the queue? I thought the asset loading is ever only done on the main thread and it is the writing of the data that is done on the separate threads, so the main thread is the only one who accesses the header list to update it. What am I missing?

Thanks,
Oliver
Oliver Marsh
193 posts / 1 project
Olster1.github.io
Asset Loading Locks Question
Edited by Oliver Marsh on
Don't worry, I should have watched the next video. :blush: