私はこれを見る:
// thread is a member of this class
synchronized( this.thread )
{
this.thread.running = false;
this.thread.notifyAll(); // Wake up anything that was .waiting() on
// the thread
this.thread = null; // kill this thread reference.
// can you do that in a synchronized block?
}
thread=null
ロックしたまま設定しても大丈夫ですか?
このナゲットは、BB コードの一部で見つかりました。