🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Async IO issue on delete while file is loading

Started by
11 comments, last by Rewaz 3 years, 3 months ago

If the variable is used in a single thread it's fine.

It seemed to me that the BlockComplete function and the while loop were in 2 different threads.

Sorry for the confusion.

Advertisement

Alberth said:

If the variable is used in a single thread it's fine.

It seemed to me that the BlockComplete function and the while loop were in 2 different threads.

Sorry for the confusion.

Don't worry xD.

I'm thinking, maybe using a shared_ptr I could share the instance that I want to the FileReader so it can callback, but I have a few custom allocators, some objects are created by PoolAllocator, so I don't know if I can use shared_ptr for that.

This topic is closed to new replies.

Advertisement