FailoverQueue
A thread-safe queue wrapper that can spill over to on-disk files for later processing.
Install / Use
/learn @Blizzard/FailoverQueueREADME
About
This project provides a thread-safe queue-like container that has the ability to spill queue content into failover files for later reprocessing. This allows the queues to be fixed in size (queue length) and periodically write overflow items into files that can be read back and inserted into the queue when the queue has fewer items.
Version
failoverqueue-v0.2.0
Usage
The FailoverQueue container is a single header file that can be included into existing source files.
Dependancies
The following libraries are used by this project:
- boost::thread
- boost::serialization
- boost::system
- boost::filesystem
Testing
Contained within the tests directory are a number of unit tests that stress basic and complex functionality as well as several edge cases.
- 01_basic: Verify functionality with basic objects
- 02_complex: Verify functionality with complex objects
- 03_uneven: Test ability to read failover files on object construction and dequeue items properly
- 04_even: Test edge case whereby failover files represent an empty queue but dequeuing must take place
- 05_order: Verify the ability to load failover files in the order in which they were created
- 06_missing: Verify that missing bug expected failover files are skipped gracefully.
Credits
Nick Gerakines ngerakines@blizzard.com
License
Copyright (c) 2010-2011 Blizzard Entertainment
Open sourced under the MIT license. See the included LICENSE file for more information.
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
