Wenyong Huang
6478f32437
Merge branch main into dev/thread_suspension
2024-01-12 19:21:30 +08:00
tkernelcn
286ea35508
fixed(freertos): Fix crash when wasm app call pthread_exit(NULL) ( #2970 )
...
before the change, only support wasm app exit like:
```c
void *thread_routine(void *arg)
{
printf("Enter thread\n");
return NULL;
}
```
if call pthread_exit, it will crash:
```c
void *thread_routine(void *arg)
{
printf("Enter thread\n");
pthread_exit(NULL);
return NULL;
}
```
This commit lets both upstairs work correctly, test pass on stm32f103 mcu.
2024-01-02 17:32:09 +08:00
tkernelcn
92bf8547aa
freertos: Add os_cond_broadcast for pthread wrapper ( #2937 )
2023-12-28 22:57:19 +08:00
Wenyong Huang
43bcf94265
Implement threads suspension/resume ( #2320 )
...
Refer to https://github.com/bytecodealliance/wasm-micro-runtime/issues/2319
2023-10-23 14:53:50 +08:00
liang.he
eaedceca2f
Add bh_print_proc_mem() to dump memory info of current process ( #1734 )
...
Only support Posix platforms currently, read memory consumption info from
file "/proc/self/status".
2022-11-25 08:33:44 +08:00
Wenyong Huang
17f62ad472
Apply clang-format for core/shared and product-mini files ( #785 )
...
Apply clang-format for core/shared and product-mini files
2021-10-14 09:12:07 +08:00
Wenyong Huang
388530c738
Modify os_cond_reltimedwait to support long time wait ( #461 )
...
Modify the argument of os_cond_reltimedwait to uint64 type to support long time wait, and handle possible integer overflow.
2020-12-07 17:37:53 +08:00
Wenyong Huang
282831eba5
Fix some compilation warnings and add esp-idf platform for experiment ( #454 )
...
And fix some code indent issues.
2020-11-30 16:03:51 +08:00