mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
b4120d34bad2 Merge bitcoin-core/libmultiprocess#192: doc: fix typos 6ecbdcd35a93 doc: fix typos a11e6905c238 Merge bitcoin-core/libmultiprocess#186: Fix mptest failures in bitcoin CI 6f340a583f2b doc: fix DrahtBot LLM Linter error c6f7fdf17350 type-context: revert client disconnect workaround e09143d2ea2f proxy-types: fix UndefinedBehaviorSanitizer: null-pointer-use 84b292fcc4db mptest: fix MemorySanitizer: use-of-uninitialized-value fe4a188803c6 proxy-io: fix race conditions in disconnect callback code d8011c83608e proxy-io: fix race conditions in ProxyClientBase cleanup handler 97e82ce19c47 doc: Add note about Waiter::m_mutex and interaction with the EventLoop::m_mutex 81d58f5580e8 refactor: Rename ProxyClient cleanup_it variable 07230f259f55 refactor: rename ProxyClient<Thread>::m_cleanup_it c0efaa5e8cb1 Merge chaincodelabs/libmultiprocess#187: ci: have bash scripts explicitly opt out of locale dependence. 0d986ff144cd mptest: fix race condition in TestSetup constructor d2f6aa2e84ef ci: add thread sanitizer job 3a6db38e561f ci: rename configs to .bash 401e0ce1d9c3 ci: add copyright to bash scripts e956467ae464 ci: export LC_ALL 8954cc0377d8 Merge chaincodelabs/libmultiprocess#184: Add CI jobs and fix clang-tidy and iwyu errors 757e13a75546 ci: add gnu32 cross-compiled 32-bit build 15bf349000eb doc: fix typo found by DrahtBot 1a598d5905f7 clang-tidy: drop 'bitcoin-*' check cbb1e43fdc6e ci: test libc++ instead of libstdc++ in one job 76313450c2c4 type-context: disable clang-tidy UndefinedBinaryOperatorResult error 4896e7fe51ba proxy-types: fix clang-tidy EnumCastOutOfRange error 060a73926956 proxy-types: fix clang-tidy StackAddressEscape error 977d721020f6 ci: add github actions jobs testing gcc, clang-20, clang-tidy, and iwyu 0d5f1faae5da iwyu: fix add/remove include errors 753d2b10cc27 util: fix clang-tidy modernize-use-equals-default error ae4f1dc2bb1a type-number: fix clang-tidy modernize-use-nullptr error 07a741bf6946 proxy-types: fix clang-tidy bugprone-use-after-move error 3673114bc9d9 proxy-types: fix clang-tidy bugprone-use-after-move error 422923f38485 proxy-types: fix clang-tidy bugprone-use-after-move error c6784c6adefa mpgen: disable clang-tidy misc-no-recursion error c5498aa11ba6 tidy: copy clang-tidy file from bitcoin core 258a617c1eec Merge chaincodelabs/libmultiprocess#160: refactor: EventLoop locking cleanups + client disconnect exception 84cf56a0b5f4 test: Test disconnects during IPC calls 949573da8411 Prevent IPC server crash if disconnected during IPC call 019839758085 Merge chaincodelabs/libmultiprocess#179: scripted-diff: Remove copyright year (ranges) ea38392960e1 Prevent EventLoop async cleanup thread early exit during shutdown 616d9a75d20a doc: Document ProxyClientBase destroy_connection option 56fff76f940b Improve IPC client disconnected exceptions 9b8ed3dc5f87 refactor: Add clang thread safety annotations to EventLoop 52256e730f51 refactor: Remove DestructorCatcher and AsyncCallable f24894794adf refactor: Drop addClient/removeClient methods 2b830e558e61 refactor: Use EventLoopRef instead of addClient/removeClient 315ff537fb65 refactor: Add ProxyContext EventLoop* member 9aaeec3678d3 proxy-io.h: Add EventLoopRef RAII class handle addClient/removeClient refcounting f58c8d8ba2f0 proxy-io.h: Add more detailed EventLoop comment 5108445e5d16 test: Add test coverage for client & server disconnections 59030c68cb5f Merge chaincodelabs/libmultiprocess#181: type-function.h: Fix CustomBuildField overload 688140b1dffc test: Add coverage for type-function.h 8b96229da58e type-function.h: Fix CustomBuildField overload fa2ff9a66842 scripted-diff: Remove copyright year (ranges) git-subtree-dir: src/ipc/libmultiprocess git-subtree-split: b4120d34bad2de28141c5770f6e8df8e54898987
66 lines
2.6 KiB
Cap'n Proto
66 lines
2.6 KiB
Cap'n Proto
# Copyright (c) The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
@0xcc316e3f71a040fb;
|
|
|
|
using Cxx = import "/capnp/c++.capnp";
|
|
$Cxx.namespace("mp");
|
|
|
|
annotation include(file): Text;
|
|
annotation includeTypes(file): Text;
|
|
# Extra include paths to add to generated files.
|
|
|
|
annotation wrap(interface, struct): Text;
|
|
# Wrap capnp interface generating ProxyClient / ProxyServer C++ classes that
|
|
# forward calls to a C++ interface with same methods and parameters. Text
|
|
# string should be the name of the C++ interface.
|
|
# If applied to struct rather than an interface, this will generate a ProxyType
|
|
# struct with get methods for introspection and copying fields between C++ and
|
|
# capnp structs.
|
|
|
|
annotation count(param, struct, interface): Int32;
|
|
# Indicate how many C++ method parameters there are corresponding to one capnp
|
|
# parameter (default is 1). If not 1, multiple C++ method arguments will be
|
|
# condensed into a single capnp parameter by the client and then expanded by
|
|
# the server by CustomReadField/CustomBuildField overloads which need to be
|
|
# provided separately. An example would be a capnp Text parameter initialized
|
|
# from C++ char* and size arguments. Can be 0 to fill an implicit capnp
|
|
# parameter from client or server side context. If annotation is applied to an
|
|
# interface or struct type it will apply to all parameters of that type.
|
|
|
|
annotation exception(param): Text;
|
|
# Indicate that a result parameter corresponds to a C++ exception. Text string
|
|
# should be the name of a C++ exception type that the generated server class
|
|
# will catch and the client class will rethrow.
|
|
|
|
annotation name(field, method): Text;
|
|
# Name of the C++ method or field corresponding to a capnp method or field.
|
|
|
|
annotation skip(field): Void;
|
|
# Synonym for count(0).
|
|
|
|
interface ThreadMap $count(0) {
|
|
# Interface letting clients control which thread a method call should
|
|
# execute on. Clients create and name threads and pass the thread handle as
|
|
# a call parameter.
|
|
makeThread @0 (name :Text) -> (result :Thread);
|
|
}
|
|
|
|
interface Thread {
|
|
# Thread handle returned by makeThread corresponding to one server thread.
|
|
|
|
getName @0 () -> (result: Text);
|
|
}
|
|
|
|
struct Context $count(0) {
|
|
# Execution context passed as a parameter from the client class to the server class.
|
|
|
|
thread @0 : Thread;
|
|
# Handle of the server thread the current method call should execute on.
|
|
|
|
callbackThread @1 : Thread;
|
|
# Handle of the client thread that is calling the current method, and that
|
|
# any callbacks made by the server thread should be made on.
|
|
}
|