[all-commits] [llvm/llvm-project] 846e61: [libc] Small change to accept lambda types in rpc:...

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu Feb 12 07:19:33 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 846e61c0fb5161a16c5719211f74bb784ffa005b
      https://github.com/llvm/llvm-project/commit/846e61c0fb5161a16c5719211f74bb784ffa005b
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2026-02-12 (Thu, 12 Feb 2026)

  Changed paths:
    M libc/shared/rpc_dispatch.h
    M libc/shared/rpc_util.h
    M offload/test/libc/rpc_callback.cpp

  Log Message:
  -----------
  [libc] Small change to accept lambda types in rpc::dispatch

Summary:
This change allows lambdas to be used in the RPC dispatching functions.
Just requires an extra function trait to convert a lambda with no
captures into a function pointer. Also rearranged where the `Port` lives
because it looks better no that we may use  a lambda and it's more
consistent with the dispatch usage (putting the client at the start).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list