├── .clang-format ├── .github ├── ISSUE_TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── clang-format.yml │ ├── clean_cache.yml │ ├── compile_daily.yml │ ├── ubuntu_clang.yml │ └── ubuntu_gcc.yml ├── .gitignore ├── CMakeLists.txt ├── CMakePresets.json ├── LICENSE ├── README.md ├── cmake ├── CompileOption.cmake ├── Configure.cmake ├── Develop.cmake ├── Extra.cmake ├── Install.cmake ├── Option.cmake ├── Platform.cmake ├── Policy.cmake ├── check │ ├── check_asan.cmake │ ├── check_compile.cmake │ └── check_system.cmake └── templates │ ├── Config.cmake.in │ └── cmake_uninstall.cmake.in ├── doc ├── README_en.md └── zh │ ├── 01-简介.md │ ├── 02-协程.md │ ├── 03-你好,协程.md │ ├── 04-Socket 网络编程.md │ └── 05-IO 接口.md ├── example ├── CMakeLists.txt ├── cancel_io.cpp ├── channel.cpp ├── cv_notify_all.cpp ├── cv_notify_one.cpp ├── echo_server.cpp ├── echo_server_MT.cpp ├── echo_server_asio.cppx ├── iota.cpp ├── multi_fan_out.cpp ├── mutex.cpp ├── nc_liburing.cppx ├── netcat.cpp ├── netcat_timeout.cpp ├── redis.conf ├── redis_echo.cpp ├── redis_echo_MT.cpp ├── resume_on.cpp ├── sem.cpp ├── sem_std.cpp ├── stop_token.cpp ├── timer.cpp ├── when_all.cpp ├── when_any.cpp └── when_some.cpp ├── extern └── liburingcxx │ ├── .clang-format │ ├── .gitignore │ ├── CMakeLists.txt │ ├── LICENSE │ ├── README.md │ ├── cmake │ ├── configure.cmake │ ├── install.cmake │ ├── option.cmake │ └── template │ │ ├── Config.cmake.in │ │ └── cmake_uninstall.cmake.in │ ├── example │ ├── CMakeLists.txt │ ├── cat.cpp │ └── httpd.cpp │ ├── format_count.sh │ ├── include │ └── uring │ │ ├── .gitignore │ │ ├── arch │ │ ├── aarch64 │ │ │ ├── lib.h │ │ │ └── syscall.h │ │ ├── generic │ │ │ ├── lib.h │ │ │ └── syscall.h │ │ ├── syscall-defs.h │ │ └── x86 │ │ │ ├── lib.h │ │ │ └── syscall.h │ │ ├── barrier.h │ │ ├── buf_ring.hpp │ │ ├── compat.hpp │ │ ├── config.hpp.in │ │ ├── cq_entry.hpp │ │ ├── detail │ │ ├── cq.hpp │ │ ├── int_flags.h │ │ └── sq.hpp │ │ ├── io_uring.h │ │ ├── sq_entry.hpp │ │ ├── syscall.hpp │ │ ├── uring.hpp │ │ ├── uring_define.hpp │ │ └── utility │ │ ├── io_helper.hpp │ │ └── kernel_version.hpp │ └── test │ ├── CMakeLists.txt │ └── type_check.cpp ├── format_count.sh ├── include └── co_context │ ├── all.hpp │ ├── co │ ├── channel.hpp │ ├── condition_variable.hpp │ ├── mutex.hpp │ ├── semaphore.hpp │ ├── spin_mutex.hpp │ ├── stop_token.hpp │ ├── when_all.hpp │ └── when_any.hpp │ ├── config │ ├── .gitignore │ ├── config.hpp.in │ ├── io_context.hpp │ ├── log.hpp │ ├── net.hpp │ └── uring.hpp │ ├── detail │ ├── attributes.hpp │ ├── compat.hpp │ ├── io_context_meta.hpp │ ├── lazy_io_awaiter.hpp │ ├── lock_guard.hpp │ ├── spinlock.hpp │ ├── spsc_cursor.hpp │ ├── task_info.hpp │ ├── tasklike.hpp │ ├── thread_meta.hpp │ ├── thread_safety.hpp │ ├── trival_task.hpp │ ├── type_traits.hpp │ ├── uninitialize.hpp │ ├── uring_type.hpp │ ├── user_data.hpp │ └── worker_meta.hpp │ ├── generator.hpp │ ├── io_context.hpp │ ├── lazy_io.hpp │ ├── log │ └── log.hpp │ ├── mpl │ ├── for.hpp │ ├── tuple.hpp │ └── type_list.hpp │ ├── net.hpp │ ├── net │ ├── acceptor.hpp │ ├── inet_address.hpp │ └── socket.hpp │ ├── shared_task.hpp │ ├── task.hpp │ └── utility │ ├── as_atomic.hpp │ ├── as_buffer.hpp │ ├── as_int.hpp │ ├── bit.hpp │ ├── compile_time.hpp │ ├── defer.hpp │ ├── polymorphism.hpp │ ├── time_cast.hpp │ └── timing.hpp ├── lib ├── CMakeLists.txt └── co_context │ ├── CMakeLists.txt │ ├── co │ ├── condition_variable.cpp │ ├── mutex.cpp │ ├── semaphore.cpp │ └── spin_mutex.cpp │ ├── detail │ └── worker_meta.cpp │ ├── io_context.cpp │ └── net │ ├── inet_address.cpp │ └── socket.cpp └── test ├── CMakeLists.txt ├── benchmark ├── CMakeLists.txt ├── co_await.cpp └── lazy_yield.cpp ├── cat.cpp ├── coro_lifetime.cpp ├── generator_test.cpp ├── httpd.cpp ├── httpd_MT.cpp ├── liburing_accept.cpp ├── liburing_netcat.cpp ├── liburingcxx_netcat.cpp ├── move_shared_task.cpp ├── mpl_type_list.cpp ├── msg_ring_cqe_flags.cppx ├── pingpong_client.cpp ├── recv_perf.cpp ├── send_client.cpp ├── streaming_client.cpp └── timer_accuracy.cpp /.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/.clang-format -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/clang-format.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/.github/workflows/clang-format.yml -------------------------------------------------------------------------------- /.github/workflows/clean_cache.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/.github/workflows/clean_cache.yml -------------------------------------------------------------------------------- /.github/workflows/compile_daily.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/.github/workflows/compile_daily.yml -------------------------------------------------------------------------------- /.github/workflows/ubuntu_clang.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/.github/workflows/ubuntu_clang.yml -------------------------------------------------------------------------------- /.github/workflows/ubuntu_gcc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/.github/workflows/ubuntu_gcc.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/.gitignore -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /CMakePresets.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/CMakePresets.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/README.md -------------------------------------------------------------------------------- /cmake/CompileOption.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/cmake/CompileOption.cmake -------------------------------------------------------------------------------- /cmake/Configure.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/cmake/Configure.cmake -------------------------------------------------------------------------------- /cmake/Develop.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/cmake/Develop.cmake -------------------------------------------------------------------------------- /cmake/Extra.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/cmake/Extra.cmake -------------------------------------------------------------------------------- /cmake/Install.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/cmake/Install.cmake -------------------------------------------------------------------------------- /cmake/Option.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/cmake/Option.cmake -------------------------------------------------------------------------------- /cmake/Platform.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/cmake/Platform.cmake -------------------------------------------------------------------------------- /cmake/Policy.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/cmake/Policy.cmake -------------------------------------------------------------------------------- /cmake/check/check_asan.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/cmake/check/check_asan.cmake -------------------------------------------------------------------------------- /cmake/check/check_compile.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/cmake/check/check_compile.cmake -------------------------------------------------------------------------------- /cmake/check/check_system.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/cmake/check/check_system.cmake -------------------------------------------------------------------------------- /cmake/templates/Config.cmake.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/cmake/templates/Config.cmake.in -------------------------------------------------------------------------------- /cmake/templates/cmake_uninstall.cmake.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/cmake/templates/cmake_uninstall.cmake.in -------------------------------------------------------------------------------- /doc/README_en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/doc/README_en.md -------------------------------------------------------------------------------- /doc/zh/01-简介.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/doc/zh/01-简介.md -------------------------------------------------------------------------------- /doc/zh/02-协程.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/doc/zh/02-协程.md -------------------------------------------------------------------------------- /doc/zh/03-你好,协程.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/doc/zh/03-你好,协程.md -------------------------------------------------------------------------------- /doc/zh/04-Socket 网络编程.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/doc/zh/04-Socket 网络编程.md -------------------------------------------------------------------------------- /doc/zh/05-IO 接口.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/doc/zh/05-IO 接口.md -------------------------------------------------------------------------------- /example/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/CMakeLists.txt -------------------------------------------------------------------------------- /example/cancel_io.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/cancel_io.cpp -------------------------------------------------------------------------------- /example/channel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/channel.cpp -------------------------------------------------------------------------------- /example/cv_notify_all.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/cv_notify_all.cpp -------------------------------------------------------------------------------- /example/cv_notify_one.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/cv_notify_one.cpp -------------------------------------------------------------------------------- /example/echo_server.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/echo_server.cpp -------------------------------------------------------------------------------- /example/echo_server_MT.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/echo_server_MT.cpp -------------------------------------------------------------------------------- /example/echo_server_asio.cppx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/echo_server_asio.cppx -------------------------------------------------------------------------------- /example/iota.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/iota.cpp -------------------------------------------------------------------------------- /example/multi_fan_out.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/multi_fan_out.cpp -------------------------------------------------------------------------------- /example/mutex.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/mutex.cpp -------------------------------------------------------------------------------- /example/nc_liburing.cppx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/nc_liburing.cppx -------------------------------------------------------------------------------- /example/netcat.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/netcat.cpp -------------------------------------------------------------------------------- /example/netcat_timeout.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/netcat_timeout.cpp -------------------------------------------------------------------------------- /example/redis.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/redis.conf -------------------------------------------------------------------------------- /example/redis_echo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/redis_echo.cpp -------------------------------------------------------------------------------- /example/redis_echo_MT.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/redis_echo_MT.cpp -------------------------------------------------------------------------------- /example/resume_on.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/resume_on.cpp -------------------------------------------------------------------------------- /example/sem.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/sem.cpp -------------------------------------------------------------------------------- /example/sem_std.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/sem_std.cpp -------------------------------------------------------------------------------- /example/stop_token.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/stop_token.cpp -------------------------------------------------------------------------------- /example/timer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/timer.cpp -------------------------------------------------------------------------------- /example/when_all.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/when_all.cpp -------------------------------------------------------------------------------- /example/when_any.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/when_any.cpp -------------------------------------------------------------------------------- /example/when_some.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/example/when_some.cpp -------------------------------------------------------------------------------- /extern/liburingcxx/.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/.clang-format -------------------------------------------------------------------------------- /extern/liburingcxx/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/.gitignore -------------------------------------------------------------------------------- /extern/liburingcxx/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/CMakeLists.txt -------------------------------------------------------------------------------- /extern/liburingcxx/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/LICENSE -------------------------------------------------------------------------------- /extern/liburingcxx/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/README.md -------------------------------------------------------------------------------- /extern/liburingcxx/cmake/configure.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/cmake/configure.cmake -------------------------------------------------------------------------------- /extern/liburingcxx/cmake/install.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/cmake/install.cmake -------------------------------------------------------------------------------- /extern/liburingcxx/cmake/option.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/cmake/option.cmake -------------------------------------------------------------------------------- /extern/liburingcxx/cmake/template/Config.cmake.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/cmake/template/Config.cmake.in -------------------------------------------------------------------------------- /extern/liburingcxx/cmake/template/cmake_uninstall.cmake.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/cmake/template/cmake_uninstall.cmake.in -------------------------------------------------------------------------------- /extern/liburingcxx/example/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/example/CMakeLists.txt -------------------------------------------------------------------------------- /extern/liburingcxx/example/cat.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/example/cat.cpp -------------------------------------------------------------------------------- /extern/liburingcxx/example/httpd.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/example/httpd.cpp -------------------------------------------------------------------------------- /extern/liburingcxx/format_count.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/format_count.sh -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/.gitignore: -------------------------------------------------------------------------------- 1 | /config.hpp 2 | -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/arch/aarch64/lib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/arch/aarch64/lib.h -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/arch/aarch64/syscall.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/arch/aarch64/syscall.h -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/arch/generic/lib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/arch/generic/lib.h -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/arch/generic/syscall.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/arch/generic/syscall.h -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/arch/syscall-defs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/arch/syscall-defs.h -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/arch/x86/lib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/arch/x86/lib.h -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/arch/x86/syscall.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/arch/x86/syscall.h -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/barrier.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/barrier.h -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/buf_ring.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/buf_ring.hpp -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/compat.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/compat.hpp -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/config.hpp.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/config.hpp.in -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/cq_entry.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/cq_entry.hpp -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/detail/cq.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/detail/cq.hpp -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/detail/int_flags.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/detail/int_flags.h -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/detail/sq.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/detail/sq.hpp -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/io_uring.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/io_uring.h -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/sq_entry.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/sq_entry.hpp -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/syscall.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/syscall.hpp -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/uring.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/uring.hpp -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/uring_define.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/uring_define.hpp -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/utility/io_helper.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/utility/io_helper.hpp -------------------------------------------------------------------------------- /extern/liburingcxx/include/uring/utility/kernel_version.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/include/uring/utility/kernel_version.hpp -------------------------------------------------------------------------------- /extern/liburingcxx/test/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/test/CMakeLists.txt -------------------------------------------------------------------------------- /extern/liburingcxx/test/type_check.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/extern/liburingcxx/test/type_check.cpp -------------------------------------------------------------------------------- /format_count.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/format_count.sh -------------------------------------------------------------------------------- /include/co_context/all.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/all.hpp -------------------------------------------------------------------------------- /include/co_context/co/channel.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/co/channel.hpp -------------------------------------------------------------------------------- /include/co_context/co/condition_variable.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/co/condition_variable.hpp -------------------------------------------------------------------------------- /include/co_context/co/mutex.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/co/mutex.hpp -------------------------------------------------------------------------------- /include/co_context/co/semaphore.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/co/semaphore.hpp -------------------------------------------------------------------------------- /include/co_context/co/spin_mutex.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/co/spin_mutex.hpp -------------------------------------------------------------------------------- /include/co_context/co/stop_token.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/co/stop_token.hpp -------------------------------------------------------------------------------- /include/co_context/co/when_all.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/co/when_all.hpp -------------------------------------------------------------------------------- /include/co_context/co/when_any.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/co/when_any.hpp -------------------------------------------------------------------------------- /include/co_context/config/.gitignore: -------------------------------------------------------------------------------- 1 | /config.hpp 2 | -------------------------------------------------------------------------------- /include/co_context/config/config.hpp.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/config/config.hpp.in -------------------------------------------------------------------------------- /include/co_context/config/io_context.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/config/io_context.hpp -------------------------------------------------------------------------------- /include/co_context/config/log.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/config/log.hpp -------------------------------------------------------------------------------- /include/co_context/config/net.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/config/net.hpp -------------------------------------------------------------------------------- /include/co_context/config/uring.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/config/uring.hpp -------------------------------------------------------------------------------- /include/co_context/detail/attributes.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/attributes.hpp -------------------------------------------------------------------------------- /include/co_context/detail/compat.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/compat.hpp -------------------------------------------------------------------------------- /include/co_context/detail/io_context_meta.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/io_context_meta.hpp -------------------------------------------------------------------------------- /include/co_context/detail/lazy_io_awaiter.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/lazy_io_awaiter.hpp -------------------------------------------------------------------------------- /include/co_context/detail/lock_guard.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/lock_guard.hpp -------------------------------------------------------------------------------- /include/co_context/detail/spinlock.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/spinlock.hpp -------------------------------------------------------------------------------- /include/co_context/detail/spsc_cursor.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/spsc_cursor.hpp -------------------------------------------------------------------------------- /include/co_context/detail/task_info.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/task_info.hpp -------------------------------------------------------------------------------- /include/co_context/detail/tasklike.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/tasklike.hpp -------------------------------------------------------------------------------- /include/co_context/detail/thread_meta.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/thread_meta.hpp -------------------------------------------------------------------------------- /include/co_context/detail/thread_safety.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/thread_safety.hpp -------------------------------------------------------------------------------- /include/co_context/detail/trival_task.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/trival_task.hpp -------------------------------------------------------------------------------- /include/co_context/detail/type_traits.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/type_traits.hpp -------------------------------------------------------------------------------- /include/co_context/detail/uninitialize.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/uninitialize.hpp -------------------------------------------------------------------------------- /include/co_context/detail/uring_type.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/uring_type.hpp -------------------------------------------------------------------------------- /include/co_context/detail/user_data.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/user_data.hpp -------------------------------------------------------------------------------- /include/co_context/detail/worker_meta.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/detail/worker_meta.hpp -------------------------------------------------------------------------------- /include/co_context/generator.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/generator.hpp -------------------------------------------------------------------------------- /include/co_context/io_context.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/io_context.hpp -------------------------------------------------------------------------------- /include/co_context/lazy_io.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/lazy_io.hpp -------------------------------------------------------------------------------- /include/co_context/log/log.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/log/log.hpp -------------------------------------------------------------------------------- /include/co_context/mpl/for.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/mpl/for.hpp -------------------------------------------------------------------------------- /include/co_context/mpl/tuple.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/mpl/tuple.hpp -------------------------------------------------------------------------------- /include/co_context/mpl/type_list.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/mpl/type_list.hpp -------------------------------------------------------------------------------- /include/co_context/net.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/net.hpp -------------------------------------------------------------------------------- /include/co_context/net/acceptor.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/net/acceptor.hpp -------------------------------------------------------------------------------- /include/co_context/net/inet_address.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/net/inet_address.hpp -------------------------------------------------------------------------------- /include/co_context/net/socket.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/net/socket.hpp -------------------------------------------------------------------------------- /include/co_context/shared_task.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/shared_task.hpp -------------------------------------------------------------------------------- /include/co_context/task.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/task.hpp -------------------------------------------------------------------------------- /include/co_context/utility/as_atomic.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/utility/as_atomic.hpp -------------------------------------------------------------------------------- /include/co_context/utility/as_buffer.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/utility/as_buffer.hpp -------------------------------------------------------------------------------- /include/co_context/utility/as_int.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/utility/as_int.hpp -------------------------------------------------------------------------------- /include/co_context/utility/bit.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/utility/bit.hpp -------------------------------------------------------------------------------- /include/co_context/utility/compile_time.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/utility/compile_time.hpp -------------------------------------------------------------------------------- /include/co_context/utility/defer.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/utility/defer.hpp -------------------------------------------------------------------------------- /include/co_context/utility/polymorphism.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/utility/polymorphism.hpp -------------------------------------------------------------------------------- /include/co_context/utility/time_cast.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/utility/time_cast.hpp -------------------------------------------------------------------------------- /include/co_context/utility/timing.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/include/co_context/utility/timing.hpp -------------------------------------------------------------------------------- /lib/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(co_context) 2 | -------------------------------------------------------------------------------- /lib/co_context/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/lib/co_context/CMakeLists.txt -------------------------------------------------------------------------------- /lib/co_context/co/condition_variable.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/lib/co_context/co/condition_variable.cpp -------------------------------------------------------------------------------- /lib/co_context/co/mutex.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/lib/co_context/co/mutex.cpp -------------------------------------------------------------------------------- /lib/co_context/co/semaphore.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/lib/co_context/co/semaphore.cpp -------------------------------------------------------------------------------- /lib/co_context/co/spin_mutex.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/lib/co_context/co/spin_mutex.cpp -------------------------------------------------------------------------------- /lib/co_context/detail/worker_meta.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/lib/co_context/detail/worker_meta.cpp -------------------------------------------------------------------------------- /lib/co_context/io_context.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/lib/co_context/io_context.cpp -------------------------------------------------------------------------------- /lib/co_context/net/inet_address.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/lib/co_context/net/inet_address.cpp -------------------------------------------------------------------------------- /lib/co_context/net/socket.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/lib/co_context/net/socket.cpp -------------------------------------------------------------------------------- /test/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/CMakeLists.txt -------------------------------------------------------------------------------- /test/benchmark/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/benchmark/CMakeLists.txt -------------------------------------------------------------------------------- /test/benchmark/co_await.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/benchmark/co_await.cpp -------------------------------------------------------------------------------- /test/benchmark/lazy_yield.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/benchmark/lazy_yield.cpp -------------------------------------------------------------------------------- /test/cat.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/cat.cpp -------------------------------------------------------------------------------- /test/coro_lifetime.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/coro_lifetime.cpp -------------------------------------------------------------------------------- /test/generator_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/generator_test.cpp -------------------------------------------------------------------------------- /test/httpd.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/httpd.cpp -------------------------------------------------------------------------------- /test/httpd_MT.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/httpd_MT.cpp -------------------------------------------------------------------------------- /test/liburing_accept.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/liburing_accept.cpp -------------------------------------------------------------------------------- /test/liburing_netcat.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/liburing_netcat.cpp -------------------------------------------------------------------------------- /test/liburingcxx_netcat.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/liburingcxx_netcat.cpp -------------------------------------------------------------------------------- /test/move_shared_task.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/move_shared_task.cpp -------------------------------------------------------------------------------- /test/mpl_type_list.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/mpl_type_list.cpp -------------------------------------------------------------------------------- /test/msg_ring_cqe_flags.cppx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/msg_ring_cqe_flags.cppx -------------------------------------------------------------------------------- /test/pingpong_client.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/pingpong_client.cpp -------------------------------------------------------------------------------- /test/recv_perf.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/recv_perf.cpp -------------------------------------------------------------------------------- /test/send_client.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/send_client.cpp -------------------------------------------------------------------------------- /test/streaming_client.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/streaming_client.cpp -------------------------------------------------------------------------------- /test/timer_accuracy.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Codesire-Deng/co_context/HEAD/test/timer_accuracy.cpp --------------------------------------------------------------------------------