libcopp 2.3.2
Loading...
Searching...
No Matches
Data Structures | Functions
sample_readme_13.cpp File Reference
#include <libcopp/coroutine/coroutine_context_container.h>
#include <libcopp/coroutine/stackful_channel.h>
#include <libcotask/task.h>
#include <cstdio>
#include <iostream>
#include <memory>
Include dependency graph for sample_readme_13.cpp:

Go to the source code of this file.

Data Structures

class  producer_action
 
class  consumer_action
 
class  consumer_with_error_handling
 
struct  direct_context_example_data
 

Functions

void example_basic_channel ()
 
void example_error_handling ()
 
int direct_consumer_runner (void *data_ptr)
 
void example_direct_coroutine_context ()
 
int main ()
 

Function Documentation

◆ direct_consumer_runner()

int direct_consumer_runner ( void *  data_ptr)

Definition at line 162 of file sample_readme_13.cpp.

Referenced by example_direct_coroutine_context().

◆ example_basic_channel()

void example_basic_channel ( )

Definition at line 71 of file sample_readme_13.cpp.

Referenced by main().

◆ example_direct_coroutine_context()

void example_direct_coroutine_context ( )

Definition at line 192 of file sample_readme_13.cpp.

References direct_consumer_runner().

Referenced by main().

◆ example_error_handling()

void example_error_handling ( )

Definition at line 131 of file sample_readme_13.cpp.

Referenced by main().

◆ main()

int main ( )