mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add comments for async call.
This commit is contained in:
parent
3211282b0c
commit
8102a22606
1 changed files with 9 additions and 0 deletions
|
@ -48,7 +48,16 @@ public:
|
||||||
ISrsAsyncCallTask();
|
ISrsAsyncCallTask();
|
||||||
virtual ~ISrsAsyncCallTask();
|
virtual ~ISrsAsyncCallTask();
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* execute the task async.
|
||||||
|
* this method is the actual execute method of task,
|
||||||
|
* for example, to notify callback server.
|
||||||
|
*/
|
||||||
virtual int call() = 0;
|
virtual int call() = 0;
|
||||||
|
/**
|
||||||
|
* convert task to string to describe it.
|
||||||
|
* used for logger.
|
||||||
|
*/
|
||||||
virtual std::string to_string() = 0;
|
virtual std::string to_string() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue