• Y
    1.1.1 release. · 2aabeebb
    youngwolf 提交于
    Support non-lock queue, it's totally not thread safe and lock-free, it can improve IO throughput with particular business.
    Demonstrate how and when to use non-lock queue as the input and output message buffer.
    Queues (and their internal containers) used as input and output message buffer are now configurable (by macros or template arguments).
    New macros--ASCS_INPUT_QUEUE, ASCS_INPUT_CONTAINER, ASCS_OUTPUT_QUEUE and ASCS_OUTPUT_CONTAINER.
    Drop macro ASCS_USE_CONCURRENT_QUEUE, rename macro ASCS_USE_CONCURRE to ASCS_HAS_CONCURRENT_QUEUE.
    In contrast to non_lock_queue, split message_queue into lock_queue and lock_free_queue.
    Move container related classes and functions from st_asio_wrapper_base.h to st_asio_wrapper_container.h.
    Improve efficiency in scenarios of low throughput like pingpong test.
    Replaceable packer/unpacker now support replaceable_buffer (an alias of auto_buffer) and shared_buffer to be their message type.
    Move class statistic and obj_with_begin_time out of ascs::socket to reduce template tiers.
    2aabeebb
config.h 11.2 KB