Tip for handling threads…

Stumbled across this post on stackoverflow on how two threads were running concurrently and issues were coming up as the MC APIs are not thread safe.  The solution?  Spawn two instances of the minecraft object so they could be called in parallel.

Good to know if you get into this level of scripting..

Python functions don’t behave as expected when called from threaded class

Advertisements

6 thoughts on “Tip for handling threads…

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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