1
0
Fork 0
android_external_drm_hwcomp.../utils
Roman Stratiienko 0fade37afd drm_hwcomposer: Rework autofd
Motivation:

Current implementation of UniqueFd can be used in a different ways,
making analytical tracking of FD lifecycle much harder than it may be.
Keep this part clean is very important, since any wrong code may open
a hard-to-detect runtime bugs and fd leaks, which may accidentally slip
into the production.

Implementation:

1. Combine UniqueFd anf OutputFd into single class.
2. Reduce the API to be minimal and sufficient.
3. Document the API and use cases.
4. Move to utils/UniqueFd.h.
5. dup(fd) was replaced with fcntl(fd, F_DUPFD_CLOEXEC)) to
   address clang-tidy findings. Find more information at [1]

[1]: https://clang.llvm.org/extra/clang-tidy/checks/android-cloexec-dup.html

Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
2021-07-24 17:59:09 +03:00
..
autolock.cpp drm_hwcomposer: CI: Increase coverage 2021-04-06 12:12:17 +03:00
autolock.h drm_hwcomposer: move header files into source directory 2020-09-08 22:34:52 +03:00
hwcutils.cpp drm_hwcomposer: cleanup hwcutils 2021-05-19 19:31:29 +03:00
log.h drm_hwcomposer: CI: Increase coverage 2021-04-06 12:12:17 +03:00
properties.h drm_hwcomposer: CI: Initial build and clang-tidy checks 2021-03-03 12:14:13 +02:00
UniqueFd.h drm_hwcomposer: Rework autofd 2021-07-24 17:59:09 +03:00
Worker.cpp drm_hwcomposer: enable code analysis using clang-tidy 2021-03-03 16:07:25 +02:00
Worker.h drm_hwcomposer: use CamelCase in source/header files related to class 2020-09-08 22:34:52 +03:00