I’m working at MCU and Linux development
jiu-xiao / onemessage Goto Github PK
View Code? Open in Web Editor NEW一个基于发布-订阅模型的多线程消息框架,用于嵌入式平台,纯C实现,性能和灵活性极高
License: Apache License 2.0
一个基于发布-订阅模型的多线程消息框架,用于嵌入式平台,纯C实现,性能和灵活性极高
License: Apache License 2.0
建议可以换成消息队列
树莓派4b,官方64位系统运行单元测试,部分用例通过,部分用例失败,日志
----------------------日志start--------------------------------
pi@raspberrypi:~/work/midea/subpub/OneMessage/build $ make; make test ARGS="-V"
[ 37%] Built target OneMessage
[ 51%] Built target Test
[100%] Built target om_test
Running tests...
UpdateCTestConfiguration from :/home/pi/work/midea/subpub/OneMessage/build/DartConfiguration.tcl
UpdateCTestConfiguration from :/home/pi/work/midea/subpub/OneMessage/build/DartConfiguration.tcl
Test project /home/pi/work/midea/subpub/OneMessage/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: om_test
1: Test command: /home/pi/work/midea/subpub/OneMessage/build/test/om_test
1: Test timeout computed to be: 10000000
1: Running suite(s): 底层API测试
1: 100%: Checks: 2, Failures: 0, Errors: 0
1: /home/pi/work/midea/subpub/OneMessage/test/om_test_base.c:8:P:内存分配测试:_MALLOC:0: Passed
1: /home/pi/work/midea/subpub/OneMessage/test/om_test_base.c:13:P:互斥锁测试:_MUTEX:0: Passed
1: Running suite(s): 模块测试
1: /home/pi/work/midea/subpub/OneMessage/src/app/om_fmt.c 40: len is 4
1: /home/pi/work/midea/subpub/OneMessage/src/app/om_fmt.c 40: len is 20
1: /home/pi/work/midea/subpub/OneMessage/src/app/om_fmt.c 40: len is 20
1: /home/pi/work/midea/subpub/OneMessage/src/app/om_fmt.c 40: len is 20
1: /home/pi/work/midea/subpub/OneMessage/src/app/om_fmt.c 40: len is 20
1: 71%: Checks: 7, Failures: 0, Errors: 2
1: /home/pi/work/midea/subpub/OneMessage/test/om_test_module.c:102:P:日志测试:_LOG:0: Passed
1: /home/pi/work/midea/subpub/OneMessage/test/om_test_module.c:43:E:订阅发布测试:_PUBLISH:0: (after this point) Test timeout expired
1: /home/pi/work/midea/subpub/OneMessage/test/om_test_module.c:76:E:静态订阅发布测试:_PUBLISH_STATIC:0: (after this point) Test timeout expired
1: /home/pi/work/midea/subpub/OneMessage/test/om_test_module.c:134:P:事件触发测试:_EVENT:0: Passed
1: /home/pi/work/midea/subpub/OneMessage/test/om_test_module.c:160:P:静态事件触发测试:_EVENT_STATIC:0: Passed
1: /home/pi/work/midea/subpub/OneMessage/test/om_test_module.c:228:P:高级过滤器测试:_FILTER:0: Passed
1: /home/pi/work/midea/subpub/OneMessage/test/om_test_module.c:294:P:静态高级过滤器测试:_FILTER_STATIC:0: Passed
1/1 Test #1: om_test ..........................***Failed 10.04 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 10.04 sec
The following tests FAILED:
1 - om_test (Failed)
Errors while running CTest
----------------------日志end--------------------------------
自己编写demo运行,发现是om_find_topic函数超时了,请作者看看这问题。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.