trantor
Non-blocking I/O cross-platform TCP network library, using C++14
Loading...
Searching...
No Matches
TimingWheel.h File Reference
#include <trantor/net/EventLoop.h>
#include <trantor/utils/Logger.h>
#include <trantor/exports.h>
#include <map>
#include <mutex>
#include <deque>
#include <vector>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <atomic>
#include <assert.h>
Include dependency graph for TimingWheel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  trantor::TimingWheel
 This class implements a timer strategy with high performance and low accuracy. This is usually used internally. More...
class  trantor::TimingWheel::CallbackEntry

Namespaces

namespace  trantor

Macros

#define TIMING_BUCKET_NUM_PER_WHEEL   100
#define TIMING_TICK_INTERVAL   1.0

Typedefs

using trantor::EntryPtr = std::shared_ptr<void>
using trantor::EntryBucket = std::unordered_set<EntryPtr>
using trantor::BucketQueue = std::deque<EntryBucket>

Detailed Description

Author
An Tao

Public header file in trantor lib.

Copyright 2018, An Tao. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the License file.