Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPC UA 服务器对象析构时会停止并自动阻塞run线程 #98

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

zhaoxi-scut
Copy link
Member

Pull Request 合并请求准备清单

详情参见此处

  • 我同意在 Apache 2 开源许可下为本项目做贡献
  • 此 pull request 是在正确的分支上提出的
  • 此 pull request 有对应的错误报告或其他待改进的内容
  • 我本地的 RMVL 进行了单元测试、性能测试,有对应的测试数据
  • 我提交的 feature 有很好的文档记录,并且可以使用 CMake 项目构建示例代码

本地单元测试结果

[==========] Running 20 tests from 3 test suites.
[----------] Global test environment set-up.
[----------] 5 tests from OPC_UA_ClientTest
[ RUN      ] OPC_UA_ClientTest.read_variable
[       OK ] OPC_UA_ClientTest.read_variable (73 ms)
[ RUN      ] OPC_UA_ClientTest.variable_IO
[       OK ] OPC_UA_ClientTest.variable_IO (72 ms)
[ RUN      ] OPC_UA_ClientTest.call
[       OK ] OPC_UA_ClientTest.call (72 ms)
[ RUN      ] OPC_UA_ClientTest.variable_monitor
[       OK ] OPC_UA_ClientTest.variable_monitor (34 ms)
[ RUN      ] OPC_UA_ClientTest.event_monitor
[2024-06-22 17:32:54.819 (UTC+0800)] info/client        Created event monitor, monitor id: 0
[       OK ] OPC_UA_ClientTest.event_monitor (35 ms)
[----------] 5 tests from OPC_UA_ClientTest (287 ms total)

[----------] 1 test from OPC_UA_PubSub
[ RUN      ] OPC_UA_PubSub.pubsub_config
[2024-06-22 17:32:54.833 (UTC+0800)] info/userland      PubSub channel requested
[2024-06-22 17:32:54.833 (UTC+0800)] info/userland      PubSub channel requested
[       OK ] OPC_UA_PubSub.pubsub_config (151 ms)
[----------] 1 test from OPC_UA_PubSub (151 ms total)

[----------] 14 tests from OPC_UA_Server
[ RUN      ] OPC_UA_Server.variable_config
[       OK ] OPC_UA_Server.variable_config (0 ms)
[ RUN      ] OPC_UA_Server.add_variable_node
[       OK ] OPC_UA_Server.add_variable_node (51 ms)
[ RUN      ] OPC_UA_Server.add_data_source_variable_node
[       OK ] OPC_UA_Server.add_data_source_variable_node (51 ms)
[ RUN      ] OPC_UA_Server.add_variable_type_node
[       OK ] OPC_UA_Server.add_variable_type_node (51 ms)
[ RUN      ] OPC_UA_Server.add_method_node
[       OK ] OPC_UA_Server.add_method_node (51 ms)
[ RUN      ] OPC_UA_Server.add_object_node
[       OK ] OPC_UA_Server.add_object_node (51 ms)
[ RUN      ] OPC_UA_Server.add_object_node_with_method
[       OK ] OPC_UA_Server.add_object_node_with_method (51 ms)
[ RUN      ] OPC_UA_Server.add_object_type_node
[       OK ] OPC_UA_Server.add_object_type_node (52 ms)
[ RUN      ] OPC_UA_Server.create_object_by_object_type
[       OK ] OPC_UA_Server.create_object_by_object_type (51 ms)
[ RUN      ] OPC_UA_Server.find_node
[       OK ] OPC_UA_Server.find_node (51 ms)
[ RUN      ] OPC_UA_Server.add_event_type_node
[       OK ] OPC_UA_Server.add_event_type_node (51 ms)
[ RUN      ] OPC_UA_Server.trigger_event
[       OK ] OPC_UA_Server.trigger_event (52 ms)
[ RUN      ] OPC_UA_Server.function_ptr
[       OK ] OPC_UA_Server.function_ptr (51 ms)
[ RUN      ] OPC_UA_Server.view_node
[       OK ] OPC_UA_Server.view_node (51 ms)
[----------] 14 tests from OPC_UA_Server (669 ms total)

[----------] Global test environment tear-down
[==========] 20 tests from 3 test suites ran. (1109 ms total)
[  PASSED  ] 20 tests.

@zhaoxi-scut zhaoxi-scut added the optimization 代码重构、功能优化 label Jun 22, 2024
@zhaoxi-scut zhaoxi-scut added this to the 1.4.0 milestone Jun 22, 2024
@zhaoxi-scut zhaoxi-scut merged commit 5ea3cb6 into cv-rmvl:master Jun 22, 2024
4 checks passed
@zhaoxi-scut zhaoxi-scut deleted the opcua-dev branch June 22, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization 代码重构、功能优化
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant