
This transitions from synchronous IPC calls to asynchronous IPC calls provided through a synchronous interface in LibFileSystemAccessClient which allows the parent Application to stay responsive. It achieves this with Promise which is pumping the Application event loop while waiting for the Dialog to respond with the user's action. LibFileSystemAccessClient provides a lazy singleton which also ensures that FileSystemAccessServer is running in the event of a crash. This also transitions TextEditor into using LibFileSystemAccessClient.
12 lines
381 B
CMake
12 lines
381 B
CMake
set(SOURCES
|
|
Client.cpp
|
|
)
|
|
|
|
set(GENERATED_SOURCES
|
|
../../Services/FileSystemAccessServer/FileSystemAccessClientEndpoint.h
|
|
../../Services/FileSystemAccessServer/FileSystemAccessServerEndpoint.h
|
|
)
|
|
|
|
serenity_lib(LibFileSystemAccessClient filesystemaccessclient)
|
|
target_link_libraries(LibFileSystemAccessClient LibIPC)
|
|
add_dependencies(LibFileSystemAccessClient WindowServer)
|