Handmade Hero » Forums » Code » Asset Loading Locks Question
OliverMarsh
Oliver
30 posts
2 projects

A budding game developer and programmer

#4775 Asset Loading Locks Question
2 years, 4 months ago

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
OliverMarsh
Oliver
30 posts
2 projects

A budding game developer and programmer

#4810 Asset Loading Locks Question
2 years, 4 months ago Edited by Oliver on Sept. 18, 2015, 12:02 p.m.

Don't worry, I should have watched the next video. :blush: