強火で進め

このブログではプログラム関連の記事を中心に書いてます。

安全なマルチスレッドプログラムの書き方

Entity Crisis: Safe Multithreading in Unity3D.
http://entitycrisis.blogspot.jp/2010/08/safe-multithreading-in-unity3d.html

(2012/01/24 追記)
Unityユーザー助け合い所にてこのプログラムだとデバッグをする時にエラーが発生するという投稿が有りました。

こちらの「Spicy Pixel Concurrency Kit」を使うとデバッグ時にも問題無く動作するとの事です。

Spicy Pixel Concurrency Kit by Spicy Pixel -- Unity Asset Store
http://u3d.as/content/spicy-pixel/spicy-pixel-concurrency-kit/312