Thread local storage

前端 未结 4 1711
陌清茗
陌清茗 2020-12-08 07:21

what is the best way to store some variable local to each thread?

4条回答
  •  甜味超标
    2020-12-08 07:36

    Other option is to pass in a parameter into the thread start method. You will need to keep in in scope, but it may be easier to debug and maintain.

提交回复
热议问题