发明名称 Dynamically allocated thread-local storage
摘要 Dynamically allocated thread storage in a computing device is disclosed. The dynamically allocated thread storage is configured to work with a process including two or more threads. Each thread includes a statically allocated thread-local slot configured to store a table. Each table is configured to include a table slot corresponding with a dynamically allocated thread-local value. A dynamically allocated thread-local instance corresponds with the table slot.
申请公布号 US9354932(B2) 申请公布日期 2016.05.31
申请号 US201113165421 申请日期 2011.06.21
申请人 Microsoft Technology Licensing, LLC 发明人 Ostrovsky Igor;Hoag Joseph E.;Toub Stephen H.;Liddell Mike
分类号 G06F9/46;G06F9/50 主分类号 G06F9/46
代理机构 代理人 Sullivan Kevin;Chinagudabha Raghu;Minhas Micky
主权项 1. A dynamically allocated thread storage in a computing device having a memory, comprising: a plurality of threads included in the memory, wherein each thread includes a statically allocated thread-local slot defined in source code, the thread-local slots each having a table including a plurality of table slots each configured to store a respective thread local value for a particular thread-local variable within the same slot position for each of the plurality of tables; and a dynamically allocated thread-local instance configured in the memory, the dynamically allocated thread-local instance contains a linked list of allocated thread local slots within the same position of the plurality of tables of the thread local slots and represents the respective values associated with a particular thread local variable, wherein the dynamically allocated thread-local instance is dynamically released during runtime and when the instance is released, indicating the allocated thread local table slot associated with the linked list for removal while preserving the value for other threads of the plurality of threads.
地址 Redmond WA US