同步最新源码

    鸿蒙研究站 | http://weharmonyos.com (国内)
              | https://weharmony.github.io (国外)
    论坛 | http://bbs.weharmonyos.com
    文档中心 | http://open.weharmonyos.com
    参考手册 | http://doxygen.weharmonyos.com
上级 55ec192a
......@@ -202,6 +202,7 @@
### 四大码仓发布 | 源码同步官方
内核注解同时在 [gitee](https://gitee.com/weharmony/kernel_liteos_a_note) | [github](https://github.com/kuangyufei/kernel_liteos_a_note) | [coding](https://weharmony.coding.net/public/harmony/kernel_liteos_a_note/git/files) | [gitcode](https://gitcode.net/kuangyufei/kernel_liteos_a_note) 发布,并与官方源码按月保持同步,同步历史如下:
* `2022/09/21` -- 主线代码没有变化,只完善了测试用例
* `2022/08/28` -- 完善测试用例
* `2022/07/18` -- 开机代码微调
* `2022/06/03` -- 增加 jffs2 编译选项
......
......@@ -49,7 +49,7 @@ extern "C" {
#define GEN_REGS_NUM 13
/* The size of this structure must be smaller than or equal to the size specified by OS_TSK_STACK_ALIGN (16 bytes). */
typedef struct { //参考OsTaskSchedule来理解
typedef struct { //参考 OsTaskSchedule 来理解
#if !defined(LOSCFG_ARCH_FPU_DISABLE) //支持浮点运算
UINT64 D[FP_REGS_NUM]; /* D0-D31 */
UINT32 regFPSCR; /* FPSCR */
......
......@@ -49,10 +49,10 @@ static void *ThreadSetFunc2(void *arg)
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
retValue = sigaddset(&set, SIGUSR1);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
int count;
retValue = sigwait(&set, &sig);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
return NULL;
}
static void *ThreadSetDfl(void *arg)
......@@ -67,14 +67,15 @@ static void *ThreadSetDfl(void *arg)
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
retValue = sigaddset(&set, SIGUSR1);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
int count;
retValue = sigwait(&set, &sig);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
return NULL;
}
static void *ThreadKill(void *arg)
{
(void)arg;
while (1) {
sleep(1);
}
......@@ -118,7 +119,6 @@ static int TestMultiPthreadKillPendNormal()
if (retValue != 0) {
exit(retValue);
}
int count;
retValue = sigwait(&set, &sig);
if (retValue != 0) {
......
......@@ -49,10 +49,11 @@ static void *ThreadSetFunc2(void *arg)
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
retValue = sigaddset(&set, SIGUSR1);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
int count;
retValue = sigwait(&set, &sig);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
return NULL;
}
static void *ThreadSetDfl(void *arg)
......@@ -67,10 +68,11 @@ static void *ThreadSetDfl(void *arg)
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
retValue = sigaddset(&set, SIGUSR1);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
int count;
retValue = sigwait(&set, &sig);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
return NULL;
}
static void *ThreadKill(void *arg)
......@@ -85,10 +87,11 @@ static void *ThreadKill(void *arg)
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
retValue = sigaddset(&set, SIGUSR1);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
int count;
retValue = sigwait(&set, &sig);
ICUNIT_ASSERT_EQUAL_NULL(retValue, 0, retValue);
return NULL;
}
static int TestMultiPthreadFatherProcessExit()
......
......@@ -41,7 +41,7 @@ static VOID *Pthread(VOID *temp)
CHAR msgrcd[MQUEUE_STANDARD_NAME_LENGTH] = {0};
g_cnt = 1;
(void *)(temp);
(void)(temp);
ret = mq_receive(g_mqueue, msgrcd, MQUEUE_STANDARD_NAME_LENGTH, nullptr);
ICUNIT_GOTO_EQUAL(ret, MQUEUE_SHORT_ARRAY_LENGTH, ret, EXIT);
ICUNIT_GOTO_STRING_EQUAL(msgrcd, MQUEUE_SEND_STRING_TEST, msgrcd, EXIT);
......
......@@ -30,7 +30,10 @@
*/
#include "it_pthread_test.h"
static VOID *PthreadTest115(VOID *arg) {}
static VOID *PthreadTest115(VOID *arg)
{
return NULL;
}
static int GroupProcess(void)
{
......
git add -A
git commit -m ' 更新因备案引发的问题
git commit -m ' 同步最新源码
鸿蒙研究站 | http://weharmonyos.com (国内)
| https://weharmony.github.io (国外)
论坛 | http://bbs.weharmonyos.com
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册