190 Commits

Author SHA1 Message Date
mutouyun
64a3ba24e7 upd: [system] adjust the output format of the error message 2022-08-14 13:45:21 +08:00
mutouyun
c51395c033 upd: [log] completion annotation 2022-08-14 12:52:21 +08:00
mutouyun
12f415fd19 fix: [log] generic constructor may shadow the default copy constructor 2022-08-14 00:34:50 +08:00
mutouyun
01c28816a2 add: [system] add features 2022-08-13 18:02:25 +08:00
mutouyun
8231d6f89e add: [codecvt] support for char8_t, char16_t, and char32_t 2022-08-13 17:52:00 +08:00
mutouyun
9f333c8b0f fix: [log] error C2440: 'initializing': cannot convert from '...' to '... noexcept' 2022-08-07 22:45:14 +08:00
mutouyun
ce52a1176c add: [codecvt] character set encoding conversion interface 2022-08-07 22:29:11 +08:00
mutouyun
56ee0e12df add: [log] exception handling for log printing 2022-08-07 17:51:30 +08:00
mutouyun
3522061321 upd: [def] adjusting predefined macros 2022-08-07 17:49:52 +08:00
mutouyun
6617033a63 add: [detect-plat] add the Apple platform detection macro 2022-08-07 15:20:26 +08:00
mutouyun
df3890d0c5 fix: [log] adjust code interface and fix bugs 2022-05-29 17:58:37 +08:00
mutouyun
e1de7f9638 add: [log] a simple implementation to be optimized 2022-05-23 00:19:07 +08:00
mutouyun
0b504f7b48 fix: expected ( before ; token 2022-05-22 20:34:56 +08:00
mutouyun
82072214d8 fix: fatal error span 2022-05-22 18:31:33 +08:00
mutouyun
fcca475076 add: [log] implement simple log function (TBD) 2022-05-22 18:29:18 +08:00
mutouyun
c1557a72ac fix: [vs2015] error C3250: 'u': declaration is not allowed in 'constexpr' function body 2022-05-15 19:58:53 +08:00
mutouyun
d129e6221a fix: ‘detail_result’ does not name a type 2022-05-15 19:40:58 +08:00
mutouyun
29188f939c add: [mmap] add interface declarations 2022-05-15 19:35:58 +08:00
mutouyun
e21da4fe2d add: [result] an additional status code can be returned on failure to return a pointer 2022-05-15 19:20:30 +08:00
mutouyun
9e170999a1 add: additional notes 2022-05-15 18:24:51 +08:00
mutouyun
c704aef5f1 modify: adjust result so that it adjusts the output based on the type 2022-05-15 18:15:39 +08:00
mutouyun
7d6eac4e6b add: libimp for utilities 2022-04-23 18:30:43 +08:00
mutouyun
2fb49eb3c4 add ut 2022-04-17 12:23:01 +08:00
mutouyun
e5f722937e add 'result' 2022-04-17 11:42:04 +08:00
mutouyun
85931e7d20 add shm.h 2022-04-03 17:10:48 +08:00
mutouyun
67bdae6fd7 修正一些bug 2022-02-27 23:50:28 +08:00
mutouyun
c32615dbda 调整代码格式和注释 2022-02-27 21:22:43 +08:00
mutouyun
23b7780485 添加部分有用的小组件 2022-02-27 18:03:30 +08:00
mutouyun
f18c27ec29 开始重构 2022-02-27 17:13:28 +08:00
mutouyun
20168fb869 尝试去除恶心的连接检测(TBD) 2022-02-27 13:47:25 +08:00
mutouyun
a2e5cc7804 修正和改进posix errno打印 2022-02-04 17:48:24 +08:00
mutouyun
d946ad0948 modify interface of sync.condition 2021-10-23 17:27:08 +08:00
mutouyun
f6bd578c8a reduce the number of recheck times for the sleep function 2021-09-20 23:29:30 +08:00
mutouyun
ed8b1fd608 fix some bugs for linux-mutex 2021-09-20 20:31:08 +08:00
mutouyun
04fda1cc3d use sync to refactor waiter 2021-09-20 15:59:44 +08:00
mutouyun
0cccdac868 merge issue-61; add condition for linux 2021-09-19 17:21:39 +08:00
mutouyun
d37a6740ea add ut for sync::semaphore 2021-09-12 21:48:22 +08:00
mutouyun
d0e2a4d80c add semaphore for win 2021-09-12 15:59:44 +08:00
木头云
78be14be37
Merge branch 'develop' into master 2021-08-29 11:05:24 +08:00
木头云
d80bea9b5d
fix: unexpected crash
An unexpected crash caused by an unconnected exit.
2021-08-23 13:10:03 +08:00
mutouyun
98a3449865 fix some bugs, adjust the test cases 2021-07-11 13:13:30 +08:00
mutouyun
69e1586b5a remove tls 2021-07-10 14:22:31 +08:00
mutouyun
cca4664e84 option(LIBIPC_BUILD_SHARED_LIBS 'Build shared libraries (DLLs).' OFF) 2021-07-10 13:50:46 +08:00
mutouyun
455c0b479d add sync::mutex for windows/linux 2021-06-20 23:50:39 +08:00
木头云
681f8e6736
add large_msg_align for cache memory alignment 2021-05-07 15:48:31 +08:00
mutouyun
6163618433 针对不同类型的策略,增加不同的sender/receiver个数检查。
- is_multi_producer:sender无限制;否则仅允许一个
 - is_multi_consumer:receiver个数上限依赖is_broadcast指定;否则仅允许一个
 - is_broadcast:receiver个数上限为32(uint_t<32>位数);否则无限制(uint_t<32>大小)

行为变更:
1. 在连接时根据模式检查sender/receiver是否超出上限,超出则返回false
2. 在send时确认是否允许发送(对receiver模式来说,send之前不会尝试确认sender个数)
3. 修正若干bug
2021-01-03 12:52:03 +08:00
mutouyun
af6ac84110 add comments 2021-01-01 12:39:32 +08:00
mutouyun
2255ae685a 调整接口;添加 msg_que demo 2020-09-20 14:55:47 +08:00
mutouyun
85c9eecdfd 避免编译时的命名冲突 2020-09-20 12:37:47 +08:00
mutouyun
7545e17084 简化接口 2020-09-20 12:20:55 +08:00