35 using Entry = int (*)(
void*);
36 using Cancel = void (*)(
void*);
39 MUST_USE_RESULT static bool launchDetached(Entry entry,
void* parameter, Cancel cancel,
42#if (HOSTED && PEDIGREE_HOSTED_SMOKE_TESTS) || PEDIGREE_CONCURRENCY_SMOKE_TESTS
43 using BeforeStartHook = void (*)(
class Thread* thread,
void* context);
44 static void setBeforeStartHookForTest(BeforeStartHook hook,
void* context);
50 static void cancelBeforeStart(
void* parameter);
51 static int trampoline(
void* parameter);