20 Commits

Author SHA1 Message Date
Bright Chen 271b98fef7 Refactor NULL with nullptr in example (#3466) 2026-08-19 23:06:40 +08:00
darion-yaphet 0313102276 build(cxx): align all builds on a C++14 baseline (#3419)
* build(cxx): align all builds on a C++14 baseline

CMake, Make, tests, tools, and examples now require C++14 so every supported build path shares the same minimum language level. The compiler checks and user-facing documentation reflect that baseline.

* fix(test): keep cores scoped to the failing test

Clear prior cores before each test binary. A passing death test can leave a core that would otherwise be used to diagnose an unrelated later failure.

* revert src/butil/type_traits.h
2026-08-06 17:34:49 +08:00
darion-yaphet f094566f54 build(example): extract shared CMake dependency helper for examples (#3391)
Example CMakeLists duplicated the same dependency discovery and link
setup. Move that into brpc_example_find_common_deps in
BrpcExample.cmake, migrate MySQL and other examples to use it, and
implement the helper as a macro so CMAKE_PREFIX_PATH, include paths,
and DYNAMIC_LIB propagate to the caller scope.
Example-specific deps stay local (e.g. readline/ncurses/thriftnb for
MySQL, gperftools for redis/http). LINK_SO behavior is unchanged.
2026-07-21 09:26:06 +08:00
darion-yaphet 82a6819297 build(cmake): Modernize target-scoped CMake configuration (#3377)
* build(cmake): keep modern CMake policy compatibility

Raise the minimum CMake version range to 3.16...3.28 so CMake 4.x no longer treats the project as relying on removed pre-3.5 policy compatibility. The range preserves a conservative 3.16 runtime floor while documenting policy validation through 3.28.

* build(cmake): modernize target-scoped CMake configuration

Move shared compile definitions, include paths, options, and link dependencies onto interface targets so top-level, src, tools, tests, and standalone examples consume consistent build settings without relying on global directory state.

Examples now share a small CMake helper, and the gtest download path is updated to configure with modern CMake while keeping downloaded gtest headers ahead of Homebrew's C++17-only installation.
2026-07-12 00:02:52 +08:00
Bright Chen 12fb539a1c Use monotonic time instead of wall time (#3268) 2026-04-13 14:14:03 +08:00
Chuang Zhang 02879c89d9 Add Transport to support more communication protocol extensions (#3199)
* Add The transport layer to support communication protocols of different device vendors.

* Refine the SocketMode name style and clean some unused code

* Refine Transport Debug method param and RdmaTransport WaitEpollOut code

* format the code, remove indentation for top class and variables in new file

* review code

---------

Co-authored-by: wenjiecn <3252896864@qq.com>
2026-01-27 10:59:00 +08:00
Bright Chen 0608aa1e13 Fix gflag namespace of example and tools (#2879) 2025-01-19 21:28:55 +08:00
Yang,Liming 36353efd21 Merge pull request #2737 from GreateCode/jemalloc_profiler
support jemalloc profiler
2024-09-23 16:14:59 +08:00
GreateCode c4cd404310 support stats print 2024-08-29 23:22:41 +08:00
Allen d79f0d3136 [#2740] fix example/rdma_performance compilation error (#2741)
Co-authored-by: ivanallen <ivanallen@qq.com>
2024-08-22 17:48:51 +08:00
GreateCode 7874a4aef0 fix Darwin mallctl 2024-08-15 22:00:02 +08:00
Bright Chen 09141d4d87 Opt contention: support tcmalloc GetStackTrace and reduce hash calculations (#2488) 2024-01-17 10:28:21 +08:00
day253 2a42a26296 remove unnecessary libthriftnb 2023-07-24 00:17:02 +08:00
Beans 22058443fd fix the issue of const unused in the example of RDMA (#2187)
Signed-off-by: beans <jing.gao@outlook.com>
2023-03-31 10:18:11 +08:00
Weibing Wang 6b563554f2 Remove incubator (#2056) 2023-01-10 10:33:14 +08:00
fan 0aa1cf1831 add bazel third_party support (#1996)
* add bazel support

* remove bind

* update

* update

* update

* update doc

* fix rdma bazel build

* update
2022-12-06 13:58:19 +08:00
果冻虾仁 581c7b1aaa remove unnecessary semicolon (#2004)
* example

* src,tool
2022-11-21 10:18:51 +08:00
Tuvie 4f63a27c9a enable brpc use rdma 2022-09-23 14:27:46 +08:00
Tuvie 568b1ac57a Merge branch 'master' into master 2022-08-15 13:56:25 +08:00
Tuvie 7d38c8f404 enable brpc use rdma 2022-07-19 23:04:37 +08:00