Logo
Explore Help
Sign In
boostorg/beast
1
0
Fork 1
You've already forked beast
mirror of https://github.com/boostorg/beast.git synced 2026-01-27 17:52:20 +01:00
Code Issues Packages Projects Releases Wiki Activity
Files
ffe2e8e02b88646f738cb8a8a5220eddd2ae5eeb
beast/test/core/handler_ptr.cpp

10 lines
321 B
C++
Raw Normal View History

Implement asio dealloc-before-invoke guarantee: fix #215 This change guarantees that temporary memory allocated through the asio hooks by the Beast implementation is deallocated before invoking the final handler when performing composed operations. The change is accomplished by replacing std::shared_ptr with a thread-safe custom container handler_ptr to manage composed operation state. The container tracks other instances which manage the same object and resets them in a safe way before invoking the final handler. handler_ptr is provided as a public interface so that users of this library can utilize the same idiom to write their own composed operations.
2017-01-02 13:29:48 -05:00
//
// Copyright (c) 2013-2016 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Test that header file is self-contained.
#include <beast/core/handler_ptr.hpp>
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 81ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API