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

Log: Refine log context, use const

This commit is contained in:
winlin 2020-07-13 11:19:34 +08:00
parent 254529d946
commit 0a057a0427
4 changed files with 16 additions and 16 deletions

View file

@ -93,10 +93,10 @@ public:
// @remark We do not set to current thread, user should do this.
virtual SrsContextId generate_id() = 0;
// Get the context id of current thread.
virtual SrsContextId get_id() = 0;
virtual const SrsContextId& get_id() = 0;
// Set the context id of current thread.
// @return the previous context id.
virtual SrsContextId set_id(SrsContextId v) = 0;
// @return the current context id.
virtual const SrsContextId& set_id(const SrsContextId& v) = 0;
};
// @global User must provides a log object