MCPcopy Create free account
hub / github.com/apache/trafficserver / _init

Method _init

include/tsutil/DenseThreadId.h:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 inline static std::size_t _num_possible_values{256};
64
65 static void
66 _init()
67 {
68 _id_stack.resize(_num_possible_values);
69
70 _stack_top_idx = 0;
71 for (std::size_t i{0}; i < _num_possible_values; ++i) {
72 _id_stack[i] = i + 1;
73 }
74 }
75
76 struct _Id {
77 _Id()

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected