MCPcopy Create free account
hub / github.com/RichieSams/FiberTaskingLib / ThreadLocal

Method ThreadLocal

include/ftl/thread_local.h:107–109  ·  view source on GitHub ↗

_MSC_VER

Source from the content-addressed store, hash-verified

105 ) // I know this won't be allocated to the right alignment, this is okay as we're using alignment for padding.
106#endif // _MSC_VER
107 explicit ThreadLocal(TaskScheduler *ts)
108 : m_scheduler(ts), m_initializer(), m_data(new ValuePadder<T>[ts->GetThreadCount()]) {
109 }
110#ifdef _MSC_VER
111# pragma warning(pop)
112#endif // _MSC_VER

Callers

nothing calls this directly

Calls 2

AlignedAllocFunction · 0.85
GetThreadCountMethod · 0.80

Tested by

no test coverage detected