File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
Task local data management
4
4
5
- Allows storing boxes with arbitrary types inside, to be accessed anywhere
6
- within a task, keyed by a pointer to a global finaliser function. Useful
7
- for task-spawning metadata (tracking linked failure state), dynamic
8
- variables, and interfacing with foreign code with bad callback interfaces.
5
+ Allows storing boxes with arbitrary types inside, to be accessed
6
+ anywhere within a task, keyed by a pointer to a global finaliser
7
+ function. Useful for dynamic variables, singletons, and interfacing
8
+ with foreign code with bad callback interfaces.
9
9
10
- To use, declare a monomorphic global function at the type to store, and use
11
- it as the 'key' when accessing. See the 'tls' tests below for examples.
10
+ To use, declare a monomorphic global function at the type to store,
11
+ and use it as the 'key' when accessing. See the 'tls' tests below for
12
+ examples.
12
13
13
- Casting 'Arcane Sight' reveals an overwhelming aura of Transmutation magic.
14
+ Casting 'Arcane Sight' reveals an overwhelming aura of Transmutation
15
+ magic.
14
16
15
17
*/
16
18
Original file line number Diff line number Diff line change
1
+ #[ doc( hidden) ] ; // FIXME #3538
2
+
1
3
use local_data:: LocalDataKey ;
2
4
3
5
trait LocalData { }
You can’t perform that action at this time.
0 commit comments