@@ -125,20 +125,20 @@ End Destructor
125125
126126Type ThreadDispatching
127127 Public :
128- Declare Constructor( ByVal nbSecondaryThread As Integer = 1 )
128+ Declare Constructor( ByVal nbMaxSecondaryThread As Integer = 1 )
129129 Declare Sub DispatchingSubmit( ByVal pThread As Function ( ByVal As Any Ptr) As String , ByVal p As Any Ptr = 0 )
130130 Declare Sub DispatchingWait()
131131 Declare Sub DispatchingWait(values() As String )
132132 Declare Property DispatchingThread() As Integer
133133 Declare Destructor()
134134 Private :
135- Dim As Integer _nbst
136- Dim As Integer _dtnb
135+ Dim As Integer _nbmst
136+ Dim As Integer _dstnb
137137 Dim As ThreadPooling Ptr _tp(Any)
138138End Type
139139
140- Constructor ThreadDispatching( ByVal nbSecondaryThread As Integer = 1 )
141- This._nbst = nbSecondaryThread
140+ Constructor ThreadDispatching( ByVal nbMaxSecondaryThread As Integer = 1 )
141+ This._nbmst = nbMaxSecondaryThread
142142End Constructor
143143
144144Sub ThreadDispatching.DispatchingSubmit( ByVal pThread As Function ( ByVal As Any Ptr) As String , ByVal p As Any Ptr = 0 )
@@ -148,13 +148,13 @@ Sub ThreadDispatching.DispatchingSubmit(ByVal pThread As Function(ByVal As Any P
148148 Exit Sub
149149 End If
150150 Next I
151- If UBound(This._tp) < This._nbst - 1 Then
151+ If UBound(This._tp) < This._nbmst - 1 Then
152152 ReDim Preserve This._tp(UBound(This._tp) + 1 )
153153 This._tp(UBound(This._tp)) = New ThreadPooling
154154 This._tp(UBound(This._tp))->PoolingSubmit(pThread, p)
155155 ElseIf UBound(This._tp) >= 0 Then
156- This._tp(This._dtnb )->PoolingSubmit(pThread, p)
157- This._dtnb = (This._dtnb + 1 ) Mod This._nbst
156+ This._tp(This._dstnb )->PoolingSubmit(pThread, p)
157+ This._dstnb = (This._dstnb + 1 ) Mod This._nbmst
158158 End If
159159End Sub
160160
0 commit comments