Day 33/365: Threads

I’m new to threading. I’m not gonna lie about that. Most of my smaller prototype-size games have been singlethreaded. However, this new project is soo big I’m preparing for multithreading already. I’ve encountered obstacles with it already!!

The obstacle is my lack of experience with threading – The resourcemanager, which is responsible for loading the textures for the harddrive into the memory, is not done when it’s reporting that it is done! So it’s done but NOT YET.

This causes issues as the rest of the program begins to run once the manager is reporting “DONE!”. So when the rest of the program starts loading up, it notices “Where’s the textures you promised me?!” and starts puking NPE’s on me!

I’ve been tackling this issue the entire day today, although I noticed it yesterday. *GRR*

Okey. Calm down, tomorrow is a new day. And I’ll solve it. Until then.
Night night!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s