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
e8ab7282
Commit
e8ab7282
authored
Jan 18, 2018
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add necessary header
parent
8adbabc6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
3 deletions
+12
-3
CMakeLists.txt
CMakeLists.txt
+6
-2
hpack.cpp
src/brpc/details/hpack.cpp
+1
-0
time.cpp
src/butil/time.cpp
+4
-1
serializer.h
src/mcpack2pb/serializer.h
+1
-0
No files found.
CMakeLists.txt
View file @
e8ab7282
...
...
@@ -126,14 +126,18 @@ set(DYNAMIC_LIB
${
LEVELDB_LIB
}
${
PROTOC_LIB
}
${
CMAKE_THREAD_LIBS_INIT
}
pthread
rt
ssl
crypto
dl
z
)
if
(
CMAKE_SYSTEM_NAME STREQUAL
"Linux"
)
set
(
DYNAMIC_LIB
${
DYNAMIC_LIB
}
rt
)
elseif
(
CMAKE_SYSTEM_NAME STREQUAL
"Darwin"
)
set
(
DYNAMIC_LIB
${
DYNAMIC_LIB
}
pthread
)
endif
()
# for *.so
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
/output/lib
)
# for *.a
...
...
src/brpc/details/hpack.cpp
View file @
e8ab7282
...
...
@@ -17,6 +17,7 @@
#include "brpc/details/hpack.h"
#include <limits> // std::numeric_limits
#include <vector>
#include "butil/containers/bounded_queue.h" // butil::BoundedQueue
#include "butil/containers/flat_map.h" // butil::FlatMap
...
...
src/butil/time.cpp
View file @
e8ab7282
...
...
@@ -35,7 +35,10 @@ int64_t monotonic_time_ns() {
// use the RAW version does not make sense anymore.
// NOTE: Not inline to keep ABI-compatible with previous versions.
timespec
now
;
#ifdef __MACH__ // OS X does not have clock_gettime, use clock_get_time
#ifdef __MACH__
// OS X does not have clock_gettime, use clock_get_time.
// The value returned is a monotonically increasing value according to
// https://opensource.apple.com/source/xnu/xnu-792.13.8/osfmk/man/clock_get_time.html
clock_serv_t
cclock
;
mach_timespec_t
mts
;
host_get_clock_service
(
mach_host_self
(),
CALENDAR_CLOCK
,
&
cclock
);
...
...
src/mcpack2pb/serializer.h
View file @
e8ab7282
...
...
@@ -20,6 +20,7 @@
#define MCPACK2PB_MCPACK_SERIALIZER_H
#include <limits>
#include <vector>
#include <google/protobuf/io/zero_copy_stream.h>
#include "butil/logging.h"
#include "butil/strings/string_piece.h"
...
...
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