| 80 | } |
| 81 | |
| 82 | void |
| 83 | Thread::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 | } |
no test coverage detected