...
首页> 外文期刊>C - C++ Users Journal >C++ Smart Pointers & Tags
【24h】

C++ Smart Pointers & Tags

机译:C ++智能指针和标签

获取原文
获取原文并翻译 | 示例
           

摘要

Recovery of long-running, system-level daemons or services in the event of catastrophic failure is an important consideration in any software design of such processes. When these systems are written in C++ and use the reference-counted smart-pointer idiom, efficient recovery of smart pointers is critical to enable scalable recovery, and even correctness of its resumed operation. In this article, I describe a method to efficiently recover reference-counted pointers on software recovery after a shutdown. In particular, the method is memory efficient, avoiding object duplication, which results from traditional techniques of serialization and unserialization of references to pointers in C++. The technique uses tags to uniquely identify pointer objects when unserialized from an archive, an object cache to keep pointer references on recovery, and a method for smart pointers to impersonate other pointer objects.
机译:在发生灾难性故障时,恢复长时间运行的系统级守护程序或服务是此类过程的任何软件设计中的重要考虑因素。当这些系统用C ++编写并使用引用计数的智能指针习惯用法时,智能指针的有效恢复对于实现可伸缩的恢复甚至恢复操作的正确性至关重要。在本文中,我描述了一种在关机后通过软件恢复有效恢复引用计数指针的方法。特别地,该方法是内存有效的,避免了对象重复,这是由C ++中对指针的引用的序列化和反序列化的传统技术导致的。该技术使用标签从存档中解串时唯一地标识指针对象,使用对象高速缓存来保留指针引用以进行恢复,以及使用智能指针来模拟其他指针对象的方法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号