TODO (235B)
1 * Make spinlock_t a struct. 2 * Don't export thread_config in the header, use functions instead (e.g. getstacksize()/setstacksize()). 3 * Ensure we can create threads from inside threads (this might work now as is). 4 * Use TLS for threads.