我有下面的一段代码,想把这些部分放在单独的线程中。
Dim objThreadedReq = From reqThreaded In objRequestList
Where reqThreaded.IsThreaded = True
Dim trThreadedRequests As Thread = New Thread(New ThreadStart(AddressOf PoolThreadedRequests))
trThreadedRequests.Start()
我创建了一个函数 PoolThreadedRequests (objRequestList As RequestList)
如何在我的线程函数中传递 objThreadedReq 集合?