Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
be197872
Commit
be197872
authored
Oct 26, 2018
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add virtual dtor to interface class
parent
4fec80cb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
0 deletions
+7
-0
tabbed.h
src/brpc/builtin/tabbed.h
+1
-0
stream.h
src/brpc/stream.h
+1
-0
stream_creator.h
src/brpc/stream_creator.h
+4
-0
logging.h
src/butil/logging.h
+1
-0
No files found.
src/brpc/builtin/tabbed.h
View file @
be197872
...
...
@@ -76,6 +76,7 @@ private:
// Note: don't forget the jquery.
class
Tabbed
{
public
:
virtual
~
Tabbed
()
=
default
;
virtual
void
GetTabInfo
(
TabInfoList
*
info_list
)
const
=
0
;
};
...
...
src/brpc/stream.h
View file @
be197872
...
...
@@ -37,6 +37,7 @@ typedef butil::ScopedGeneric<StreamId, detail::StreamIdTraits> ScopedStream;
class
StreamInputHandler
{
public
:
virtual
~
StreamInputHandler
()
=
default
;
virtual
int
on_received_messages
(
StreamId
id
,
butil
::
IOBuf
*
const
messages
[],
size_t
size
)
=
0
;
...
...
src/brpc/stream_creator.h
View file @
be197872
...
...
@@ -28,6 +28,8 @@ class StreamUserData;
// generally this object is created before RPC and destroyed after RPC.
class
StreamCreator
{
public
:
virtual
~
StreamCreator
()
=
default
;
// Called when the socket for sending request is about to be created.
// If the RPC has retries, this function MAY be called before each retry.
// This function would not be called if some preconditions are not
...
...
@@ -56,6 +58,8 @@ public:
// of a specific stream request.
class
StreamUserData
{
public
:
virtual
~
StreamUserData
()
=
default
;
// Called when the streamUserData is about to destroyed.
// This function MUST be called to clean up resources if OnCreatingStream
// of StreamCreator has returned a valid StreamUserData pointer.
...
...
src/butil/logging.h
View file @
be197872
...
...
@@ -424,6 +424,7 @@ public:
};
virtual
void
print
(
const
Site
&
site
)
=
0
;
virtual
~
VLogSitePrinter
()
=
default
;
};
void
print_vlog_sites
(
VLogSitePrinter
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment