[all-commits] [llvm/llvm-project] 6a8bbd: [lldb] Enable the insertion of "pending callbacks"...

Pavel Labath via All-commits all-commits at lists.llvm.org
Tue Sep 6 02:06:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a8bbd26ab22e5c4962b86fc5385b04f0e690b92
      https://github.com/llvm/llvm-project/commit/6a8bbd26ab22e5c4962b86fc5385b04f0e690b92
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2022-09-06 (Tue, 06 Sep 2022)

  Changed paths:
    M lldb/include/lldb/Host/MainLoopBase.h
    M lldb/include/lldb/Host/posix/MainLoopPosix.h
    M lldb/include/lldb/Host/windows/MainLoopWindows.h
    M lldb/source/Host/common/MainLoopBase.cpp
    M lldb/source/Host/posix/MainLoopPosix.cpp
    M lldb/source/Host/windows/MainLoopWindows.cpp
    M lldb/unittests/Host/MainLoopTest.cpp

  Log Message:
  -----------
  [lldb] Enable the insertion of "pending callbacks" to MainLoops from other threads

This will be used as a replacement for selecting over a pipe fd, which
does not work on windows. The posix implementation still uses a pipe
under the hood, while the windows version uses windows event handles.

The idea is that, instead of writing to a pipe, one just inserts a
callback, which does whatever you wanted to do after the bytes come out
the read end of the pipe.

Differential Revision: https://reviews.llvm.org/D131160




More information about the All-commits mailing list