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

Method start

src/iocore/eventsystem/Thread.cc:82–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void
83Thread::start(const char *name, void *stack, size_t stacksize, ThreadFunction const &f)
84{
85 auto *p = new thread_data_internal{f, this, ""};
86
87 ink_zero(p->name);
88 ink_strlcpy(p->name, name, MAX_THREAD_NAME_LENGTH);
89 if (stacksize == 0) {
90 stacksize = DEFAULT_STACKSIZE;
91 }
92 ink_thread_create(&tid, spawn_thread_internal, p, 0, stacksize, stack);
93}

Callers 4

makerequestFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls 3

ink_zeroFunction · 0.85
ink_strlcpyFunction · 0.85
ink_thread_createFunction · 0.85

Tested by

no test coverage detected