summaryrefslogtreecommitdiffhomepage
path: root/docs/ccommon_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-05-02 14:01:38 +0200
committerTyge Løvset <[email protected]>2023-05-02 14:19:20 +0200
commit028b113df1e09cb56ac56b4ad60f633b8fabaded (patch)
tree766a7cdc82fd87d6db5694be1aa3c3a1a00062b9 /docs/ccommon_api.md
parentab7a91c501fb3b7054e836a931754caae578c5f2 (diff)
downloadSTC-modified-028b113df1e09cb56ac56b4ad60f633b8fabaded.tar.gz
STC-modified-028b113df1e09cb56ac56b4ad60f633b8fabaded.zip
Add cco_await_void().
Diffstat (limited to 'docs/ccommon_api.md')
-rw-r--r--docs/ccommon_api.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/ccommon_api.md b/docs/ccommon_api.md
index 407ddac4..f4a2c349 100644
--- a/docs/ccommon_api.md
+++ b/docs/ccommon_api.md
@@ -362,14 +362,15 @@ To resume the coroutine from where it was suspended with *cco_yield()*, simply c
| | `cco_yield(retval)` | Suspend execution and return retval |
| | `cco_yield()` | Suspend execution (return void) |
| | `cco_await(promise)` | Suspend and return false until promise is true |
+| | `cco_await_void(promise)` | Suspend until promise is true (return void) |
| | `cco_await_while(cond, retval)` | Suspend and return retval while cond is true |
-| | From caller side: | |
-| `void` | `cco_stop(ctx)` | Next call of coroutine returns `cco_end()` |
-| `void` | `cco_reset(ctx)` | Reset state to initial (for reuse) |
| | Semaphores: | |
| | `cco_semaphore` | Semaphore type |
| | `cco_await_sem(sem)` | Await for the semaphore count > 0 |
| | `cco_signal_sem(sem)` | Signal the semaphore by increasing count|
+| | From caller side: | |
+| `void` | `cco_stop(ctx)` | Next call of coroutine returns `cco_end()` |
+| `void` | `cco_reset(ctx)` | Reset state to initial (for reuse) |
---
## RAII scope macros