summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/coroutines
AgeCommit message (Collapse)Author
2023-08-17Renamed "internal" csview member .str => .buf, as it is not null terminated ↵Tyge Lovset
like crawstr .str member.
2023-08-13Updated scheduler.c example.tylov
2023-08-13Removed csview_null - use csview_init().tylov
2023-08-08Reverted cco_cleanup => cco_final. (cco_cleanup deprecated).Tyge Løvset
Updated generator.c example. Misc internal refactoring.
2023-08-06Docs improvements in README.mdtylov
2023-08-01Last minute API change for coroutines before V4.3 release:Tyge Løvset
- Renamed cco_xxxx_await() => cco_await_xxxx() (call, task, sem, timer) - Renamed cco_xxxx_blocking() => cco_blocking_xxxx() (call, task) - Renamed cco_task_resume() => cco_resume_task() - Simplified cco_blocking_call()
2023-07-31Renamed cco_generator() => cco_iter_struct(). More in line with ↵tylov
cco_task_struct() macro.
2023-07-30Added cco_generator(Name, ...) macro to simplify defining the iterator ↵tylov
struct. Updated example generator.c
2023-07-24Updated godbolt links to working v4.3 examples.tylov
Added missing files.
2023-07-23- algo/sort.h: Use plural form of i_key (or i_val) to define default name ↵tylov
for sort, like: <i_key>s_sort_n(data, n). - Updated some examples.
2023-07-21NB! Changed some coroutine API for consistency/simplicity: Added full task ↵tylov
support.
2023-07-21Renamed badly abbreviated names in crand.h.tylov
Moved coroutine.h from algo subfolder to stc. Updated coroutine.h and docs.
2023-07-20Moved examples to sub-directories. Added cotask1.c cotask2.c examples.tylov