Skip to content

Commit 3477b38

Browse files
authored
update doc (#436)
2 parents 71abe07 + ec5988f commit 3477b38

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ English | [中文](README_ZH.md)
1515

1616
## 🚀 Features
1717

18-
- [x] Preemptive(`not supported in windows`): even if the coroutine enters a dead loop, it can still be seized,
18+
- [x] Preemptive: even if the coroutine enters a dead loop, it can still be seized,
1919
see [example](https://github.com/loongs-zhang/open-coroutine/blob/master/open-coroutine/examples/preemptive.rs);
2020
- [x] Hook: you are free to use most of the slow syscall in coroutine, see supported syscall
2121
on [unix](https://github.com/acl-dev/open-coroutine/blob/master/hook/src/syscall/unix.rs)/[windows](https://github.com/acl-dev/open-coroutine/blob/master/hook/src/syscall/windows.rs);

README_ZH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
## 🚀 当前特性
1616

17-
- [x] 抢占调度(`不支持windows`):
17+
- [x] 抢占调度:
1818
即使协程进入死循环,它仍能被抢占,查看[例子](https://github.com/loongs-zhang/open-coroutine/blob/master/open-coroutine/examples/preemptive.rs);
1919
- [x] Hook:
2020
您可以在协程中自由使用大多数慢系统调用,查看支持的系统调用[unix](https://github.com/acl-dev/open-coroutine/blob/master/hook/src/syscall/unix.rs)/[windows](https://github.com/acl-dev/open-coroutine/blob/master/hook/src/syscall/windows.rs);

core/docs/cn/monitor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ author: loongs-zhang
1414

1515
| | ELF (Linux, BSD, bare metal, etc) | Darwin (macOS, iOS, etc) | Windows |
1616
|---------------|-----------------------------------|--------------------------|---------|
17-
| `x86_64` ||| |
18-
| `x86` ||| |
17+
| `x86_64` ||| |
18+
| `x86` ||| |
1919
| `AArch64` ||||
2020
| `ARM` ||||
2121
| `RISC-V` ||||

core/docs/en/monitor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ The `preemptive` feature currently supports the following targets:
1414

1515
| | ELF (Linux, BSD, bare metal, etc) | Darwin (macOS, iOS, etc) | Windows |
1616
|---------------|-----------------------------------|--------------------------|---------|
17-
| `x86_64` ||| |
18-
| `x86` ||| |
17+
| `x86_64` ||| |
18+
| `x86` ||| |
1919
| `AArch64` ||||
2020
| `ARM` ||||
2121
| `RISC-V` ||||

core/src/monitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ std::arch::global_asm!(
511511
// the coroutine is truly CPU-bound with no syscalls — do_preempt
512512
// forces an immediate context switch.
513513
#[cfg(windows)]
514-
std::thread_local! {
514+
thread_local! {
515515
static PREEMPT_PENDING: Cell<bool> = const { Cell::new(false) };
516516
}
517517

0 commit comments

Comments
 (0)