1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Kernel: Never depends on another globals for global variables

This commit is contained in:
winlin 2021-02-25 14:06:18 +08:00
parent 20df644a05
commit 1909cfb3ff
11 changed files with 88 additions and 76 deletions

View file

@ -61,9 +61,11 @@ public:
// Sugar for target to stat.
int64_t sugar;
public:
SrsPps(SrsWallClock* clk);
SrsPps();
virtual ~SrsPps();
public:
// Setup the clock, use global clock if not set.
void set_clock(SrsWallClock* clk);
// Update with the nn which is target.
void update();
// Update with the nn.