summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-05-09 04:40:24 +0200
committerTyge Lovset <[email protected]>2023-05-09 04:40:24 +0200
commit99d94309f31f082b505180d2cb7c1c6c2215e9f0 (patch)
treeb4dd5aec779eff711e5e3fea0d356301c3969cd2 /docs
parent2f11c7cf36690a1493344189b6a011c26ee58a9b (diff)
downloadSTC-modified-99d94309f31f082b505180d2cb7c1c6c2215e9f0.tar.gz
STC-modified-99d94309f31f082b505180d2cb7c1c6c2215e9f0.zip
reverted cco_await_done => cco_await_at.
Diffstat (limited to 'docs')
-rw-r--r--docs/ccommon_api.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/ccommon_api.md b/docs/ccommon_api.md
index 512aeb80..93ad2bb7 100644
--- a/docs/ccommon_api.md
+++ b/docs/ccommon_api.md
@@ -361,12 +361,12 @@ To resume the coroutine from where it was suspended with *cco_yield()*, simply c
| | `cco_end(ret)` | End coroutine block and return ret |
| | `cco_yield()` | Yield/suspend execution |
| | `cco_yield(ret)` | Yield/suspend execution and return ret |
-| | `cco_yield_at(co, call)` | Yield next in co call, if not done |
-| | `cco_yield_at(co, call, ret)` | Yield next in co call with ret |
+| | `cco_yield_at(co, call)` | Yield at co call if it is suspended |
+| | `cco_yield_at(co, call, ret)` | Yield at co call with ret if suspended |
| | `cco_await(promise)` | Await/suspend until promise is true |
| | `cco_await(promise, ret)` | Await/suspend with ret value |
-| | `cco_await_done(co, call)` | Await for co call to finish |
-| | `cco_await_done(co, call, ret)` | Await for co call to finish with ret |
+| | `cco_await_at(co, call)` | Await for co call to finish |
+| | `cco_await_at(co, call, ret)` | Await for co call to finish with ret |
| | Semaphores: | |
| | `csem` | Semaphore type |
| | `cco_await_sem(sem)` | Await for the semaphore count > 0 |
@@ -384,7 +384,7 @@ To resume the coroutine from where it was suspended with *cco_yield()*, simply c
| | From caller side: | |
| `void` | `cco_stop(co)` | Next call of coroutine returns `cco_end()` |
| `void` | `cco_reset(co)` | Reset state to initial (for reuse) |
-| `void` | `cco_run_blocked(co, corocall) { }` | Call coro blocked until done |
+| `void` | `cco_run(co, corocall) { }` | Run blocking until coro is done |
---
## RAII scope macros