1
0
mirror of https://github.com/tearshark/librf.git synced 2024-10-01 15:57:07 +08:00
Commit Graph

159 Commits

Author SHA1 Message Date
tearshark
9f1aaf5923 兼容Xcode 2020-03-26 17:26:39 +08:00
tearshark
0c0f37877b 兼容xcode 2020-03-26 16:30:45 +08:00
tearshark
e0555c5668 兼容xcode 2020-03-26 16:28:27 +08:00
tearshark
34b2a4cad2 mutex增加协程中手工解锁的功能 2020-03-26 14:30:59 +08:00
tearshark
fab455a02d 确保批量解锁的顺序 2020-03-26 13:37:00 +08:00
tearshark
df83ec6be2 增加mutex的注释 2020-03-24 14:07:02 +08:00
tearshark
645822427d 给mutex添加注释 2020-03-24 13:47:23 +08:00
tearshark
8a3b577147 排除潜在的内存错误 2020-03-23 22:11:35 +08:00
tearshark
e0a5737240 兼容一些老项目 2020-03-23 18:14:25 +08:00
tearshark
e6b2686b75 删除不再使用的文件 2020-03-23 17:48:24 +08:00
tearshark
8ffe1d24e2 整理mutex_v2代码 2020-03-23 17:25:58 +08:00
tearshark
bebda7391d 整理测试代码 2020-03-23 17:19:59 +08:00
tearshark
0b0b41a42a 兼容VS2017 2020-03-22 14:54:11 +08:00
tearshark
2a296c3be0 解决支持timeout的event/mutex可能的线程不安全的问题 2020-03-22 14:40:36 +08:00
tearshark
6fef43340a 审查mutex_v2代码 2020-03-22 14:19:10 +08:00
tearshark
9d94bfa30c 完善mutex_t的接口 2020-03-22 02:05:14 +08:00
tearshark
e22ae5dc12 完成无死锁mutex批量加锁 2020-03-22 00:50:54 +08:00
tearshark
a7208f95d8 减少clang下的编译警告 2020-03-20 18:26:34 +08:00
tearshark
9f74f6c198 mutex_t完善无死锁批量加锁 2020-03-20 18:23:06 +08:00
tearshark
a949d1f4c8 完成mutex_t的无死锁批量加锁功能 2020-03-20 18:13:31 +08:00
tearshark
fb1d8d39e5 mutex_v2增加超时等待功能
修改无死锁锁定多个锁的算法,以便于支持mutex_v2
2020-03-20 01:04:52 +08:00
tearshark
18ff251233 增加yield()支持
可以获得调用链的跟节点
切换协程方法的修改
mutex_t增加try_lock()实现
2020-03-19 17:46:10 +08:00
tearshark
d13ae66d87 完善concept定义 2020-03-18 23:28:19 +08:00
tearshark
d46925ab11 美化说明文档 2020-03-18 22:27:52 +08:00
tearshark
cc1367f39c 更新测试说明 2020-03-18 21:59:36 +08:00
tearshark
8af94ea0fc 完善mutex_v2代码 2020-03-18 21:46:55 +08:00
tearshark
946656e34e 实现mutex第二版 2020-03-18 18:36:39 +08:00
tearshark
ca0177e3bb 兼容clang 2020-03-17 23:40:39 +08:00
tearshark
d09152280c 完善event_v2的wait_all功能 2020-03-17 18:26:22 +08:00
tearshark
ba477e9252 完成event_v2的wait_any 2020-03-17 01:40:42 +08:00
tearshark
bac50e93cd 完善event_v2的concept约束 2020-03-16 18:12:57 +08:00
tearshark
3be26ee113 简化一些concept的写法。 2020-03-15 23:33:53 +08:00
tearshark
71d373ae82 解决_WhenTaskT定义不完整的问题 2020-03-15 23:22:16 +08:00
tearshark
a31da60a94 clang的一个bug导致when_all/any代码可能编译失败。
不得已更换切换调度器的写法。
2020-03-15 22:20:21 +08:00
tearshark
d3a9b85677 为event_v2支持wait_any做准备 2020-03-15 21:59:53 +08:00
tearshark
a15e8a6dde event_v2测试失败 2020-03-14 17:36:10 +08:00
tearshark
6c9110a3e4 解决vector<bool>导致的问题
启用event_v2版本代码
event_v2尽量兼容event_v1用法
2020-03-14 17:20:31 +08:00
tearshark
fb22854f30 完善concept的使用 2020-03-14 12:05:41 +08:00
tearshark
979d220df7 使用concept来完成when_all/when_any。 2020-03-14 11:04:13 +08:00
tearshark
254c13b21e 使用concept来描述部分接口 2020-03-14 01:52:43 +08:00
tearshark
622c0ea911 去除两处警告 2020-03-12 23:14:59 +08:00
tearshark
2d0a597b85 整理类型萃取代码
when_all/when_any接受functor。functor必须得返回一个awaitor
2020-03-12 23:03:04 +08:00
tearshark
0ac9fa1b26 萃取awaitor的特征 2020-03-12 20:01:10 +08:00
tearshark
9bedbba9b8 整理特性萃取代码 2020-03-12 17:52:23 +08:00
tearshark
aba74aaa19 重新实现when_all/when_any 2020-03-12 16:56:23 +08:00
tearshark
c863f50ff1 获得当前协程帮定的调度器 2020-03-11 22:30:42 +08:00
tearshark
ece8c19952 优化event 2020-03-11 17:14:58 +08:00
tearshark
5ea36e6cc0 timer提供线程安全的可能 2020-03-10 23:38:06 +08:00
tearshark
cd8f6adb7e 解决几处可能错误使用compare exchange weak的地方 2020-03-10 22:58:06 +08:00
tearshark
042e85f077 减少event的一个自旋锁 2020-03-10 22:51:44 +08:00