mirror of
https://github.com/RGBCube/serenity
synced 2026-01-13 00:01:00 +00:00
Previously, when returning from a pthread's start_routine, we would segfault. Now we instead implicitly call pthread_exit as specified in the standard. pthread_create now creates a thread running the new pthread_create_helper, which properly manages the calling and exiting of the start_routine supplied to pthread_create. To accomplish this, the thread's stack initialization has been moved out of sys$create_thread and into the userspace function create_thread. |
||
|---|---|---|
| .. | ||
| Makefile | ||
| pthread.cpp | ||
| pthread.h | ||