Refactor Launchpad Hydra 78/292278/28
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 3 May 2023 03:54:45 +0000 (03:54 +0000)
committerHwanKyu Jhun <h.jhun@samsung.com>
Tue, 9 May 2023 01:22:11 +0000 (01:22 +0000)
commit2c436ab2d64df353c54c2159ee6c9c37a8d61f77
tree263ebf534d5fb6abb804dd4169490b716dd99dff
parent2ed13283766222782bec186f006567e32061b85d
Refactor Launchpad Hydra

The launchpad hydra libary is implemented using C++ language.
The process pool is added to the hydra loader. And, this patch decreases
the number of the process pool of executors to one from two.
The liblaunchpad-glib library is added to separate the libary related to
glib from the liblaunchpad-common library.
It's for the liblaunchpad-hydra library.

Change-Id: I434e9612e2b1c3c2cfe9ac174c7175d16ddda842
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
63 files changed:
CMakeLists.txt
packaging/launchpad.spec
src/launchpad-process-pool/CMakeLists.txt
src/launchpad-process-pool/app_executor.cc
src/launchpad-process-pool/app_executor.hh
src/launchpad-process-pool/hydra_loader_context.cc
src/launchpad-process-pool/hydra_sigchld_event.cc
src/launchpad-process-pool/hydra_sigchld_event.hh
src/launchpad-process-pool/launchpad.cc
src/launchpad-process-pool/launchpad_args.cc [new file with mode: 0644]
src/launchpad-process-pool/launchpad_args.hh [new file with mode: 0644]
src/launchpad-process-pool/loader_executor.cc
src/launchpad-process-pool/loader_executor.hh
src/launchpad-process-pool/process_pool.cc
src/launchpad-process-pool/process_pool.hh
src/launchpad-process-pool/signal_manager.cc
src/launchpad-process-pool/signal_manager.hh
src/lib/CMakeLists.txt
src/lib/common/inc/launchpad_types.h
src/lib/launchpad-common/CMakeLists.txt
src/lib/launchpad-common/app_packet.cc [deleted file]
src/lib/launchpad-common/hydra_request.cc [new file with mode: 0644]
src/lib/launchpad-common/hydra_request.hh [moved from src/lib/launchpad-common/app_packet.hh with 57% similarity]
src/lib/launchpad-common/sigchld_info.cc [new file with mode: 0644]
src/lib/launchpad-common/sigchld_info.hh [new file with mode: 0644]
src/lib/launchpad-common/socket.hh
src/lib/launchpad-common/stdio.cc [new file with mode: 0644]
src/lib/launchpad-common/stdio.hh [moved from src/lib/launchpad-hydra/inc/launchpad_sigchld.h with 60% similarity]
src/lib/launchpad-glib/CMakeLists.txt [new file with mode: 0644]
src/lib/launchpad-glib/app_info.cc [moved from src/lib/launchpad-common/app_info.cc with 78% similarity]
src/lib/launchpad-glib/app_info.hh [moved from src/lib/launchpad-common/app_info.hh with 90% similarity]
src/lib/launchpad-glib/io_channel.cc [moved from src/lib/launchpad-common/io_channel.cc with 95% similarity]
src/lib/launchpad-glib/io_channel.hh [moved from src/lib/launchpad-common/io_channel.hh with 92% similarity]
src/lib/launchpad-glib/log_private.hh [new file with mode: 0644]
src/lib/launchpad-glib/pkgconfig/liblaunchpad-glib.pc.in [new file with mode: 0644]
src/lib/launchpad-glib/plugin.cc [moved from src/lib/launchpad-common/plugin.cc with 95% similarity]
src/lib/launchpad-glib/plugin.hh [moved from src/lib/launchpad-common/plugin.hh with 88% similarity]
src/lib/launchpad-glib/util.cc [moved from src/lib/launchpad-common/util.cc with 97% similarity]
src/lib/launchpad-glib/util.hh [moved from src/lib/launchpad-common/util.hh with 89% similarity]
src/lib/launchpad-glib/vconf.cc [moved from src/lib/launchpad-common/vconf.cc with 97% similarity]
src/lib/launchpad-glib/vconf.hh [moved from src/lib/launchpad-common/vconf.hh with 93% similarity]
src/lib/launchpad-hydra/CMakeLists.txt
src/lib/launchpad-hydra/event_loop.cc [new file with mode: 0644]
src/lib/launchpad-hydra/event_loop.hh [new file with mode: 0644]
src/lib/launchpad-hydra/executor.cc [new file with mode: 0644]
src/lib/launchpad-hydra/executor.hh [new file with mode: 0644]
src/lib/launchpad-hydra/hydra_args.cc [new file with mode: 0644]
src/lib/launchpad-hydra/hydra_args.hh [new file with mode: 0644]
src/lib/launchpad-hydra/io_event.cc [new file with mode: 0644]
src/lib/launchpad-hydra/io_event.hh [new file with mode: 0644]
src/lib/launchpad-hydra/launchpad_hydra.cc [new file with mode: 0644]
src/lib/launchpad-hydra/launchpad_hydra.hh [new file with mode: 0644]
src/lib/launchpad-hydra/loader_executor.cc [new file with mode: 0644]
src/lib/launchpad-hydra/loader_executor.hh [new file with mode: 0644]
src/lib/launchpad-hydra/log_private.hh [new file with mode: 0644]
src/lib/launchpad-hydra/process_pool.cc [new file with mode: 0644]
src/lib/launchpad-hydra/process_pool.hh [new file with mode: 0644]
src/lib/launchpad-hydra/signal_manager.cc [new file with mode: 0644]
src/lib/launchpad-hydra/signal_manager.hh [new file with mode: 0644]
src/lib/launchpad-hydra/src/launchpad_hydra.c [deleted file]
src/lib/launchpad-hydra/src/launchpad_sigchld.c [deleted file]
src/lib/launchpad/src/launchpad_lib.c
tests/launchpad-process-pool-unittest/CMakeLists.txt