Luuk de Gram
a97dbdfa0b
std: implement Thread spawn for WASI
...
This implements a first version to spawn a WASI-thread. For a new thread
to be created, we calculate the size required to store TLS, the new stack,
and metadata. This size is then allocated using a user-provided allocator.
After a new thread is spawn, the HOST will call into our bootstrap procedure.
This bootstrap procedure will then initialize the TLS segment and set the
newly spawned thread's TID. It will also set the stack pointer to the newly
created stack to ensure we do not clobber the main thread's stack.
When bootstrapping the thread is completed, we will call the user's
function on this new thread.
2023-06-26 20:00:57 +02:00
..
2023-06-24 16:56:39 -07:00
2023-06-26 04:25:14 -07:00
2023-06-25 12:27:45 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2022-05-09 18:51:46 +02:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-05-08 10:59:06 +03:00
2023-06-24 16:56:39 -07:00
2023-06-25 23:30:25 -07:00
2023-06-24 16:56:39 -07:00
2023-06-19 12:34:42 -07:00
2023-06-24 16:56:39 -07:00
2023-06-26 20:00:57 +02:00
2023-06-24 16:56:39 -07:00
2022-01-01 12:47:08 +00:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-25 14:51:03 -07:00
2023-06-26 02:05:28 -07:00
2023-06-24 16:56:39 -07:00
2023-06-16 13:44:09 -07:00
2023-04-21 23:08:48 -04:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-04-22 13:09:15 +03:00
2023-04-28 13:24:43 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-25 14:51:03 -07:00
2023-06-24 16:56:39 -07:00
2023-02-22 00:11:20 +11:00
2023-05-23 17:55:59 -07:00
2023-05-22 16:11:06 +02:00
2023-06-25 14:51:03 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2021-09-01 17:54:06 -07:00
2023-06-16 13:44:09 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-10 20:42:30 -07:00
2023-06-24 16:56:39 -07:00
2023-06-19 12:34:42 -07:00
2023-01-11 15:39:48 -08:00
2023-06-24 16:56:39 -07:00
2023-06-25 04:56:38 -07:00
2023-06-24 16:56:39 -07:00
2023-04-30 18:16:04 -07:00
2023-06-19 12:34:42 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-25 19:14:03 -04:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-25 14:51:03 -07:00
2023-02-18 19:17:21 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-25 14:13:52 +01:00
2023-06-22 02:03:53 -07:00
2023-02-18 19:17:21 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-19 12:34:42 -07:00
2023-06-24 16:56:39 -07:00
2023-06-17 13:17:34 -07:00
2023-06-24 16:56:39 -07:00
2023-06-22 17:32:28 +00:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-03-17 17:50:25 +01:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-17 12:49:13 -07:00
2023-06-26 20:00:57 +02:00
2023-06-24 16:56:39 -07:00
2023-06-19 12:34:42 -07:00
2023-06-24 16:56:39 -07:00
2023-06-24 16:56:39 -07:00
2023-06-26 15:46:04 +03:00
2023-06-24 16:56:39 -07:00
2023-06-19 12:34:42 -07:00
2023-06-24 16:56:39 -07:00