0

我有下面的一段代码,想把这些部分放在单独的线程中。

 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 集合?

4

1 回答 1

1

谢谢蒂姆,

“看看 ParameterizedThreadStart 委托”

于 2012-08-22T08:19:25.720 回答