root
|
81784f1c6b
|
fix: 增加los错误码和posix错误码对接接口
方案描述:
1, 增加一个内部接口, 用于los接口返回的错误码转换成posix错误码
BREAKING CHANGE:
无新增接口, 原有接口pthread_create错误时的错误码进行了区分
Close #I6NWNV
Signed-off-by: wangchen <wangchen240@huawei.com>
|
2023-03-17 16:23:31 +08:00 |
|
arvinzzz
|
f038492dbc
|
fix: pthread_create内部逻辑时序调整
在线程创建成功后,pthread_create内部先将函数返回值设置好,再进行TaskResume就绪调度状态
Signed-off-by: arvinzzz <zhaotianyu9@huawei.com>
Change-Id: I795c115da612123b67f34cdc57e85eac955bbc08
|
2023-02-10 17:42:17 +08:00 |
|
openharmony_ci
|
1599669290
|
!748 Use rv32i substring as RISC-V architecture selector
Merge pull request !748 from Dmytro Kosmii/master
|
2022-07-18 02:15:55 +00:00 |
|
Dmytro Kosmii
|
3a190a1a1b
|
Added missed includes.
Signed-off-by: Dmytro Kosmii <dmytro.kosmii@telink-semi.com>
Change-Id: I172a68a1ad6ca194399a6d47d46c54ebcfbd9338
|
2022-07-12 19:45:07 +03:00 |
|
i-wangliangliang
|
62eb96dd8d
|
iccarm工具链编译适配
Signed-off-by: i-wangliangliang <willfox@126.com>
Change-Id: I9360dc232c35ec4db7a9bee08f3c288e22941e39
|
2022-07-12 17:01:44 +08:00 |
|
lihongjin
|
243fe55c68
|
style: Misspelling
Signed-off-by: lihongjin <lihongjin1@huawei.com>
Change-Id: Ie14607b483d31a6efdf17e40e9937fe4bc2484c2
|
2022-06-23 09:46:16 +08:00 |
|
LiteOS2021
|
83b6331aad
|
fix(线程id判断有误,cmsis优先级创建修改): 线程id判断有误,cmsis优先级创建修改
线程id判断有误,cmsis优先级创建修改
Signed-off-by: LiteOS2021 <dinglu@huawei.com>
|
2022-03-18 11:16:51 +08:00 |
|
zhushengle
|
96cc92d035
|
feat: 支持任务栈可配置
支持liteos_m 任务栈可配置
支持pthread 任务栈可配置
支持cmsis 任务栈可配置
BREAKING CHANGE:
pthread_create 支持任务栈设置
osThreadNew 支持任务栈设置
TSK_INIT_PARAM_S 结构体添加stackAddr 字段
Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: Ifa2a3581b705631cc83cbde6182a39c28d66de2a
|
2022-02-21 09:08:05 +08:00 |
|
zhushengle
|
cc57f81ab8
|
fix: 修复pthread 编译告警
Close #I4U16U
Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: I67ba2469f2a4697bcb6da9f342bd8d18835cc874
|
2022-02-17 10:06:15 +08:00 |
|
zhushengle
|
60805e1a7c
|
fix: posix线程和LOS_TaskCreate任务不兼容,补齐接口防护,防止访问野指针
Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: I03040e86a5ac618d3ede671c497a0ae88a3717ae
|
2022-02-16 14:47:35 +08:00 |
|
LiteOS2021
|
4b607fd074
|
fix(posix接口融合): posix接口融合,接口规范兼容性修改
posix接口融合,接口规范兼容性修改
BREAKING CHANGE:
接口修改:
calloc
pthread_mutex_init
mq_unlink
pthread_join
pthread_exit
pthread_attr_init
pthread_attr_destroy
pthread_condattr_destroy
pthread_cond_timedwait
pthread_mutexattr_init
pthread_mutexattr_settype
pthread_mutex_destroy
pthread_mutex_timedlock
pthread_mutex_trylockk
pthread_mutex_unlock
sem_getvalue
sem_timedwait
pthread_cond_timedwait
nanosleep
timer_create
timer_settime
timer_gettime
testStdlibStrtoull005
testStdlibStrtol011
testStdlibStrtoul007
testPthread004
新增接口:
CheckForCancel
pthread_setcancelstate
pthread_setcanceltype
pthread_once
pthread_setschedprio
pthread_attr_setstack
pthread_attr_getstack
pthread_condattr_getpshared
pthread_condattr_setpshared
pthread_condattr_getclock
pthread_mutexattr_gettype
CheckMutexAttr
OsMuxPreCheck
sem_trywait
MuxPendForPosix
MuxPostForPosix
增加overrun功能
接口变化:
mq_getsetattr 改为内部接口MqGetSetAttr
GetTickTimeFromNow->OsGetTickTimeFromNow
接口位置转移:
pthread_equal接口由newlib下转移到kal/posix/src/pthread.c中
Signed-off-by: LiteOS2021 <dinglu@huawei.com>
|
2022-02-10 16:41:12 +08:00 |
|
LiteOS2021
|
207efc15b8
|
fix(posix): posix兼容回退
posix兼容回退
Signed-off-by: LiteOS2021 <dinglu@huawei.com>
|
2022-01-30 23:09:20 +08:00 |
|
LiteOS2021
|
e0b12758da
|
fix(posix): posix接口融合,接口规范兼容性修改
posix接口融合,接口规范兼容性修改
BREAKING CHANGE:
接口修改:
calloc
pthread_mutex_init
mq_unlink
pthread_join
pthread_exit
pthread_attr_init
pthread_attr_destroy
pthread_condattr_destroy
pthread_cond_timedwait
pthread_mutexattr_init
pthread_mutexattr_settype
pthread_mutex_destroy
pthread_mutex_timedlock
pthread_mutex_trylockk
pthread_mutex_unlock
sem_getvalue
新增接口:
CheckForCancel
pthread_setcancelstate
pthread_setcanceltype
pthread_once
pthread_setschedprio
pthread_attr_setstack
pthread_attr_getstack
pthread_condattr_getpshared
pthread_condattr_setpshared
pthread_condattr_getclock
pthread_mutexattr_gettype
CheckMutexAttr
OsMuxPreCheck
sem_trywait
接口变化:
mq_getsetattr 改为内部接口OsMqGetSetAttr
接口位置转移:
pthread_equal接口由newlib下转移到kal/posix/src/pthread.c中
Signed-off-by: LiteOS2021 <dinglu@huawei.com>
|
2022-01-29 16:57:49 +08:00 |
|
yinjiaming
|
194ac5898d
|
fix: 当前仓代码编译告警的问题
【背景】
当前仓代码存在编译告警需要处理
【修改方案】
在测试用例中屏蔽了-Werror选项
在对应的代码处添加了相应函数的声明头文件
【影响】
对现有的产品编译不会有影响。
re #I4N50W
Signed-off-by: yinjiaming <yinjiaming@huawei.com>
Change-Id: I7dc1e38105aa3d60f9f991f34f88875cccb48463
|
2022-01-19 02:27:14 +00:00 |
|
zhushengle
|
4c4784e33d
|
fix: 修复liteos-m在iar环境下的编译问题
1.数据类型转换
2.使用未初始化数据
3.无用的标签
4.pthread 线程退出后name指向野指针
Close #I4Q5Q5
Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: Ib89390d8f61a355788da77651bf9aeee816561bb
|
2022-01-11 18:01:01 +08:00 |
|
zhushengle
|
cd949ddae0
|
fix: 修复pthread_create相关问题
1. 系统调度未起时,调用pthread_create失败
系统调度未起时,系统无运行任务,获取当前线程失败
2. 先创建任务再给任务赋值name,且未加锁保护,和shell存在静态
Close #I4P78J
Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: I2570dcf90953ced06400a0a22193cc81719fb546
|
2022-01-04 15:06:13 +08:00 |
|
zhushengle
|
a856303b9c
|
feat: 支持posix线程私有数据能力
BREAKING CHANGE:
int pthread_key_create(pthread_key_t *k, void (*dtor)(void *))
int pthread_key_delete(pthread_key_t k)
int pthread_setspecific(pthread_key_t k, const void *x)
void *pthread_getspecific(pthread_key_t k)
Close #I4ODEB
Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: I60ce26c20d1e2033922d2d1b01d73fc8938c8019
|
2021-12-28 19:55:10 +08:00 |
|
zhushengle
|
ecfdf7ff9b
|
feat: 支持posix 和 cmsis join能力
支持API:
LOS_TaskJoin
LOS_TaskDeatch
pthread_join
pthread_deatch
osThreadJoin
osThreadDetach
Close #I44V26
Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: Ib61e69c280eef2e4b3b79d9bba7bbd5a300c7fe4
|
2021-09-23 18:54:14 +08:00 |
|
zhushengle
|
2b1e5a7a13
|
fix: 修复pthread_create行为与posix不一致问题
1.提升posix接口和LOS接口的兼容性
2.支持优先级继承属性
Close #I49W9F
Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: I4d9df778a559f094dd3062e5e7030e3a03c884ec
|
2021-09-15 14:21:01 +08:00 |
|
Caoruihong
|
5b2c3f2c89
|
fix pthread_create timing bug
|
2021-04-02 16:18:19 +08:00 |
|
mamingshuai
|
778c8b9930
|
update openharmony 1.0.1
|
2021-03-11 20:30:40 +08:00 |
|
Caoruihong
|
c3a34f1b79
|
Description: add posix api for liteos_m
Reviewed-by: likailong
Change-Id: I4f83c38d201ce6efe214509958c346aa9e542155
|
2021-01-21 23:47:21 +08:00 |
|
Caoruihong
|
1405111aa9
|
Description: refactor
Reviewed-by: likailong
|
2020-12-16 17:30:08 +08:00 |
|
likailong
|
72c4acf01e
|
Description: liteos-m refactoring
Reviewed-by: wangmihu, zhushengle
|
2020-12-02 19:40:34 +08:00 |
|