チェンジセット 547
- コミット日時:
- 2008/05/31 03:09:26 (6 ヶ月前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/Thread/branches/soumen/src/org/libspark/thread/Thread.as
r540 r547 619 619 620 620 // イベントを保存 621 _event = e .clone();621 _event = e; 622 622 623 623 // 該当するイベントハンドラを次の実行関数に設定 … … 635 635 // state を実行状態に切り替える 636 636 _state = _runningState; 637 638 // 入れ子になる場合があるのでカレントスレッドを保存 639 var current:Thread = _currentThread; 640 641 try { 642 // そしてすぐ実行してみる 643 internalExecute(null, this); 644 } 645 finally { 646 // カレントスレッドを復元 647 _currentThread = current; 648 } 637 649 } 638 650 … … 677 689 } 678 690 691 return internalExecute(error, errorThread); 692 } 693 694 private function internalExecute(error:Object, errorThread:Thread):Boolean 695 { 679 696 if (_state == ThreadState.WAITING || _state == ThreadState.TIMED_WAITING) { 680 697 if (error != null) { … … 834 851 // 自分の子スレッドを、孤児スレッドとしてトップレベルに移動する 835 852 if (_children != null) { 836 addToplevelThreads( children);853 addToplevelThreads(_children); 837 854 // 子スレッドは破棄 838 855 _children = null;
