mirror of
https://gitee.com/openharmony/third_party_libuv
synced 2025-01-14 00:30:53 +00:00
!219 libuv lfields结构体移除trigger成员
Some checks failed
ci-sample / build (macos-latest) (push) Has been cancelled
ci-sample / build (ubuntu-latest) (push) Has been cancelled
ci-sample / build (windows-latest) (push) Has been cancelled
CI-unix / build-linux (push) Has been cancelled
CI-unix / build-android (push) Has been cancelled
CI-unix / build-macos (push) Has been cancelled
CI-unix / build-ios (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:aarch64-linux-gnu-gcc qemu:qemu-aarch64-static target:aarch64 (u64 slots) toolchain:gcc-aarch64-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:aarch64-linux-gnu-gcc qemu:qemu-aarch64-static target:aarch64 toolchain:gcc-aarch64-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:arm-linux-gnueabi-gcc qemu:qemu-arm-static target:arm (u64 slots) toolchain:gcc-arm-linux-gnueabi]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:arm-linux-gnueabi-gcc qemu:qemu-arm-static target:arm toolchain:gcc-arm-linux-gnueabi]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:arm-linux-gnueabihf-gcc qemu:qemu-arm-static target:armhf toolchain:gcc-arm-linux-gnueabihf]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:mips-linux-gnu-gcc qemu:qemu-mips-static target:mips toolchain:gcc-mips-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:mips64-linux-gnuabi64-gcc qemu:qemu-mips64-static target:mips64 toolchain:gcc-mips64-linux-gnuabi64]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:mips64el-linux-gnuabi64-gcc qemu:qemu-mips64el-static target:mips64el toolchain:gcc-mips64el-linux-gnuabi64]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:mipsel-linux-gnu-gcc qemu:qemu-mipsel-static target:mipsel toolchain:gcc-mipsel-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:powerpc-linux-gnu-gcc qemu:qemu-ppc-static target:ppc (u64 slots) toolchain:gcc-powerpc-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:powerpc-linux-gnu-gcc qemu:qemu-ppc-static target:ppc toolchain:gcc-powerpc-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:powerpc64-linux-gnu-gcc qemu:qemu-ppc64-static target:ppc64 (u64 slots) toolchain:gcc-powerpc64-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:powerpc64-linux-gnu-gcc qemu:qemu-ppc64-static target:ppc64 toolchain:gcc-powerpc64-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:powerpc64le-linux-gnu-gcc qemu:qemu-ppc64le-static target:ppc64le toolchain:gcc-powerpc64le-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:riscv64-linux-gnu-gcc qemu:qemu-riscv64-static target:riscv64 toolchain:gcc-riscv64-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:s390x-linux-gnu-gcc qemu:qemu-s390x-static target:s390x toolchain:gcc-s390x-linux-gnu]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:Win32 server:2019 toolchain:Visual Studio 16 2019]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:Win32 server:2022 toolchain:Visual Studio 17 2022]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:arm64 server:2022 toolchain:Visual Studio 17 2022]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:x64 config:ASAN server:2022 toolchain:Visual Studio 17 2022]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:x64 config:UBSAN server:2022 toolchain:Visual Studio 17 2022]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:x64 server:2019 toolchain:Visual Studio 16 2019]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:x64 server:2022 toolchain:Visual Studio 17 2022]) (push) Has been cancelled
CI-win / build-mingw-${{ matrix.config.arch }} (map[arch:i686 libgcc:dw2 server:2022]) (push) Has been cancelled
CI-win / build-mingw-${{ matrix.config.arch }} (map[arch:x86_64 libgcc:seh server:2022]) (push) Has been cancelled
Sanitizer checks / sanitizers-linux (push) Has been cancelled
Sanitizer checks / sanitizers-macos (push) Has been cancelled
Sanitizer checks / sanitizers-windows (push) Has been cancelled
CI-win / test-mingw-${{ matrix.config.arch }} (map[arch:i686 server:2022]) (push) Has been cancelled
CI-win / test-mingw-${{ matrix.config.arch }} (map[arch:x86_64 server:2022]) (push) Has been cancelled
Some checks failed
ci-sample / build (macos-latest) (push) Has been cancelled
ci-sample / build (ubuntu-latest) (push) Has been cancelled
ci-sample / build (windows-latest) (push) Has been cancelled
CI-unix / build-linux (push) Has been cancelled
CI-unix / build-android (push) Has been cancelled
CI-unix / build-macos (push) Has been cancelled
CI-unix / build-ios (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:aarch64-linux-gnu-gcc qemu:qemu-aarch64-static target:aarch64 (u64 slots) toolchain:gcc-aarch64-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:aarch64-linux-gnu-gcc qemu:qemu-aarch64-static target:aarch64 toolchain:gcc-aarch64-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:arm-linux-gnueabi-gcc qemu:qemu-arm-static target:arm (u64 slots) toolchain:gcc-arm-linux-gnueabi]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:arm-linux-gnueabi-gcc qemu:qemu-arm-static target:arm toolchain:gcc-arm-linux-gnueabi]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:arm-linux-gnueabihf-gcc qemu:qemu-arm-static target:armhf toolchain:gcc-arm-linux-gnueabihf]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:mips-linux-gnu-gcc qemu:qemu-mips-static target:mips toolchain:gcc-mips-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:mips64-linux-gnuabi64-gcc qemu:qemu-mips64-static target:mips64 toolchain:gcc-mips64-linux-gnuabi64]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:mips64el-linux-gnuabi64-gcc qemu:qemu-mips64el-static target:mips64el toolchain:gcc-mips64el-linux-gnuabi64]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:mipsel-linux-gnu-gcc qemu:qemu-mipsel-static target:mipsel toolchain:gcc-mipsel-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:powerpc-linux-gnu-gcc qemu:qemu-ppc-static target:ppc (u64 slots) toolchain:gcc-powerpc-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:powerpc-linux-gnu-gcc qemu:qemu-ppc-static target:ppc toolchain:gcc-powerpc-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:powerpc64-linux-gnu-gcc qemu:qemu-ppc64-static target:ppc64 (u64 slots) toolchain:gcc-powerpc64-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:powerpc64-linux-gnu-gcc qemu:qemu-ppc64-static target:ppc64 toolchain:gcc-powerpc64-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:powerpc64le-linux-gnu-gcc qemu:qemu-ppc64le-static target:ppc64le toolchain:gcc-powerpc64le-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:riscv64-linux-gnu-gcc qemu:qemu-riscv64-static target:riscv64 toolchain:gcc-riscv64-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:s390x-linux-gnu-gcc qemu:qemu-s390x-static target:s390x toolchain:gcc-s390x-linux-gnu]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:Win32 server:2019 toolchain:Visual Studio 16 2019]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:Win32 server:2022 toolchain:Visual Studio 17 2022]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:arm64 server:2022 toolchain:Visual Studio 17 2022]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:x64 config:ASAN server:2022 toolchain:Visual Studio 17 2022]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:x64 config:UBSAN server:2022 toolchain:Visual Studio 17 2022]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:x64 server:2019 toolchain:Visual Studio 16 2019]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:x64 server:2022 toolchain:Visual Studio 17 2022]) (push) Has been cancelled
CI-win / build-mingw-${{ matrix.config.arch }} (map[arch:i686 libgcc:dw2 server:2022]) (push) Has been cancelled
CI-win / build-mingw-${{ matrix.config.arch }} (map[arch:x86_64 libgcc:seh server:2022]) (push) Has been cancelled
Sanitizer checks / sanitizers-linux (push) Has been cancelled
Sanitizer checks / sanitizers-macos (push) Has been cancelled
Sanitizer checks / sanitizers-windows (push) Has been cancelled
CI-win / test-mingw-${{ matrix.config.arch }} (map[arch:i686 server:2022]) (push) Has been cancelled
CI-win / test-mingw-${{ matrix.config.arch }} (map[arch:x86_64 server:2022]) (push) Has been cancelled
Merge pull request !219 from liaoxingxing/removeLfields
This commit is contained in:
commit
9ff2adaac5
@ -470,9 +470,9 @@ static void uv__get_process_name(char* processName, int bufferLength) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void uv__set_signal_flag(uv__loop_internal_fields_t* lfields) {
|
||||
static int uv__set_signal_flag() {
|
||||
static int trigger = -1;
|
||||
|
||||
if (trigger == -1) {
|
||||
char processName[1024] = {0};
|
||||
uv__get_process_name(processName, sizeof(processName));
|
||||
@ -483,7 +483,7 @@ static void uv__set_signal_flag(uv__loop_internal_fields_t* lfields) {
|
||||
trigger = 1;
|
||||
}
|
||||
}
|
||||
lfields->trigger = (unsigned int)trigger;
|
||||
return trigger;
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -500,7 +500,7 @@ static void uv__signal_event(uv_loop_t* loop,
|
||||
bytes = 0;
|
||||
end = 0;
|
||||
#ifdef USE_FFRT
|
||||
uv__set_signal_flag(loop->internal_fields);
|
||||
unsigned int trigger = uv__set_signal_flag();
|
||||
#endif
|
||||
do {
|
||||
r = read(loop->signal_pipefd[0], buf + bytes, sizeof(buf) - bytes);
|
||||
@ -542,8 +542,7 @@ static void uv__signal_event(uv_loop_t* loop,
|
||||
if (msg->signum == handle->signum) {
|
||||
assert(!(handle->flags & UV_HANDLE_CLOSING));
|
||||
#ifdef USE_FFRT
|
||||
uv__loop_internal_fields_t* lfields = uv__get_internal_fields(handle->loop);
|
||||
if (lfields->trigger != 1) {
|
||||
if (trigger != 1) {
|
||||
handle->signal_cb(handle, handle->signum);
|
||||
}
|
||||
#else
|
||||
|
@ -449,7 +449,6 @@ struct uv__loop_internal_fields_s {
|
||||
#endif /* __linux__ */
|
||||
#ifdef USE_FFRT
|
||||
struct uv__queue wq_sub[5];
|
||||
unsigned int trigger;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user