Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
RoboPLC
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
黄新宇
RoboPLC
Commits
30710bf6
提交
30710bf6
authored
7月 28, 2024
作者:
Serhij S
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
doc fixes
上级
7f35cc78
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
22 行增加
和
20 行删除
+22
-20
CHANGELOG.md
CHANGELOG.md
+2
-0
README.md
README.md
+20
-20
没有找到文件。
CHANGELOG.md
浏览文件 @
30710bf6
...
...
@@ -6,6 +6,8 @@
*
Custom real-time locking policies
*
[
RTSC
](
https://crates.io/crates/rtsc
)
0.3 integration
*
Stability and architecture improvements
*
[
RFlow
](
https://crates.io/crates/rflow
)
integration
...
...
README.md
浏览文件 @
30710bf6
...
...
@@ -62,17 +62,17 @@ width="550" />
*
classic pub/sub patterns with no data serialization overhead
*
based on
[
`p
channel`
]
which allows to mix different kinds of data and apply
additional policies if required
*
based on
[
`p
olicy_channel`
]
which allows to mix different kinds of data and
a
pply a
dditional policies if required
*
a fully passive model with no "server" thread.
## pdeque and pchannel
## pdeque and p
olicy_
channel
A policy-based deque
[
`rtsc::pdeque::Deque`
]
is a component to build policy-based
channels.
[
`pchannel`
]
is a channel module, based on the policy-based deque.
[
`p
olicy_
channel`
]
is a channel module, based on the policy-based deque.
Data policies supported:
...
...
@@ -88,11 +88,11 @@ Additionally, components support ordering by data priority and automatically
drop expired data if the data type has got an expiration marker method
implemented.
[
`p
channel`
]
is a real-time safe channel, mean it may be not so fast as popular
channel implementations (it may be even slower than channels provided by
[
`std::sync::mpsc`
]
). But it is
**completely safe for real-time applications**
,
mean there are no spin loops, data is always delivered with minimal latency and
threads do not block each other.
[
`p
olicy_channel`
]
is a real-time safe channel, mean it may be not so fast as
popular channel implementations (it may be even slower than channels provided
by
[
`std::sync::mpsc`
]
). But it is
**
completely safe for real-time
applications
**
, mean there are no spin loops, data is always delivered with
minimal latency and
threads do not block each other.
## Real-time
...
...
@@ -159,18 +159,18 @@ Linux machines only.
## Migration from 0.3.x
*
[
`roboplc::pchannel`
]
and
[
`roboplc::pchannel_async`
]
have been renamed to
[
`roboplc::policy_channel`
]
and
[
`roboplc::policy_channel_async`
]
respectively.
*
`pchannel`
and
`pchannel_async`
have been renamed to
[
`policy_channel`
]
and
[
`policy_channel_async`
]
respectively.
*
By default, the crate uses
`parking_lot`
for locking. To switch to more safe
real-time locking, disable the crate default features and enable either
`locking-rt`
or
`locking-rt-safe`
. THIS IS IMPORTANT FOR REAL-TIME
APPLICATIONS AND MUST BE ENABLED MANUALLY.
*
By default, the crate uses
[
parking_lot
](
https://crates.io/crates/parking_lot
)
for locking. To switch to
more safe real-time locking, disable the crate default features and enable
either
`locking-rt`
or
`locking-rt-safe`
.
**
This is important for real-time
applications and must be enabled manually
**
.
*
As
[
RTSC
](
https://crates.io/crates/rtsc
)
components are lock-agnostic, which
requires to specify generic locking types, the modules
[
`
roboplc::
channel`
]
,
[
`
roboplc::policy_channel`
]
,
[
`roboplc::buf`
]
and
[
`roboplc::semaphore`
]
are
now wrappers around RTSC
modules with the chosen locking policy.
requires to specify generic locking types, the modules
[
`channel`
]
,
[
`
policy_channel`
]
,
[
`buf`
]
and
[
`semaphore`
]
are now wrappers around RTSC
modules with the chosen locking policy.
*
[
`
roboplc::
hub_async`
]
now requires
`async`
feature to be enabled.
*
[
`hub_async`
]
now requires
`async`
feature to be enabled.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论