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:
parent
254529d946
commit
0a057a0427
4 changed files with 16 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue