Ignore:
Timestamp:
Sep 9, 2007, 12:41:35 PM (17 years ago)
Author:
dai
Message:

コンストラクタパラメータを処理中にGCがかかると、初期化中オブジェクトのスキャンで強制終了してしまうバグを修正。
グローバル領域に保持されるオブジェクトの一部がGCによって不正に回収されてしまうバグを修正。
Thread.Nameプロパティを実装

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/Classes/System/Threading/Thread.ab

    r303 r330  
    2626    m_fp As PTHREAD_START_ROUTINE
    2727    m_args As VoidPtr
     28    name As String
    2829
    2930Public
     
    3435
    3536        m_fp=0
     37
     38        name = "sub thread"
    3639    End Sub
    3740    Sub Thread(fp As PTHREAD_START_ROUTINE, args As VoidPtr)
     
    4245        m_fp=fp
    4346        m_args=args
     47
     48        name = "sub thread"
    4449    End Sub
    4550
     
    5055        m_fp=obj.m_fp
    5156        m_args=obj.m_args
     57
     58        name = "sub thread"
    5259    End Sub
    5360
     
    5562        m_hThread=hThread
    5663        m_dwThreadId=dwThreadId
     64
     65        name = "sub thread"
    5766    End Sub
    5867
     
    8392        Return m_dwThreadId
    8493    End Function
     94
     95    Function Name() As String
     96        Return name
     97    End Function
     98    Sub Name( name As String )
     99        This.name = name
     100    End Sub
    85101
    86102
Note: See TracChangeset for help on using the changeset viewer.