libcopp  2.2.0
Data Structures | Typedefs | Functions | Variables
sample_readme_4.cpp File Reference
#include <inttypes.h>
#include <stdint.h>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <iostream>
#include <libcopp/stack/stack_pool.h>
#include <libcotask/task.h>
Include dependency graph for sample_readme_4.cpp:

Go to the source code of this file.

Data Structures

struct  sample_macro_coroutine
 

Typedefs

typedef copp::stack_pool< copp::allocator::default_statck_allocator > stack_pool_t
 
typedef cotask::task< sample_macro_coroutinesample_task_t
 

Functions

int main ()
 

Variables

static stack_pool_t::ptr_t global_stack_pool = stack_pool_t::create()
 

Typedef Documentation

◆ sample_task_t

typedef cotask::task<sample_macro_coroutine> sample_task_t

Definition at line 25 of file sample_readme_4.cpp.

◆ stack_pool_t

typedef copp::stack_pool<copp::allocator::default_statck_allocator> stack_pool_t

Definition at line 13 of file sample_readme_4.cpp.

Function Documentation

◆ main()

int main ( )

Variable Documentation

◆ global_stack_pool

stack_pool_t::ptr_t global_stack_pool = stack_pool_t::create()
static

Definition at line 23 of file sample_readme_4.cpp.

Referenced by main().