Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ellectroid/multitimeout
Single thread multiple timeout handler
https://github.com/ellectroid/multitimeout
countdown countdown-timer countdown-timers cpp cpp20 cpp20-lib cpp20-library timeout timeout-library timeout-manager timeouts timer timer-application timer-clock timer-counter timer-interrupt timer-manager timers
Last synced: about 20 hours ago
JSON representation
Single thread multiple timeout handler
- Host: GitHub
- URL: https://github.com/ellectroid/multitimeout
- Owner: ellectroid
- License: unlicense
- Created: 2024-01-24T14:24:51.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-19T10:40:43.000Z (9 months ago)
- Last Synced: 2024-02-19T12:02:32.385Z (9 months ago)
- Topics: countdown, countdown-timer, countdown-timers, cpp, cpp20, cpp20-lib, cpp20-library, timeout, timeout-library, timeout-manager, timeouts, timer, timer-application, timer-clock, timer-counter, timer-interrupt, timer-manager, timers
- Language: C++
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Multitimeout
Single thread multiple timeout handlerC++ Standard: C++20 (uses \)
This mini-library can handle arbitrary number of timeouts (measured in milliseconds) using a single thread, which always sleeps and wakes up only when some timeout expired.
Simple and easily modifyable library with thread-safety and all sleeping logic taken care of. Configure & forget.
Useful properties:
- Uses externally provided memory for arbitrary number of timeouts
- Single expiry timeouts or repeating timeouts
- Single thread handles all timeouts, always sleeps between timeout events
- Was originally designed to handle all TCP connection timeouts using a single threadLicense: Unlicense. Do whatever you want with it.