我在MSDN中发现了关于线程本地存储初始值的矛盾。Thispage说:Whenthethreadsarecreated,thesystemallocatesanarrayofLPVOIDvaluesforTLS,whichareinitializedtoNULL.这让我相信,如果我从一个从未为同一索引调用过TlsSetValue的线程中使用有效索引调用TlsGetValue,那么我应该得到一个空指针。Thispage,然而,说:Itisuptotheprogrammertoensure...thatthethreadcallsTlsSetValuebeforecallingTlsGet