提交 ae8bbdea 编写于 作者: 鸿蒙内核源码分析's avatar 鸿蒙内核源码分析

zzz/pic 上传

搜索 @note_pic 可以查看全部字符图
搜索 @note_why 是注者尚未看明白的地方,如果您看明白了,请告诉注者完善
搜索 @note_thinking 是注者的思考和吐槽的地方
上级 c609d510
......@@ -23,4 +23,3 @@ platform/board.ld
apps/init/init
apps/shell/shell
lib/libc/musl
zzz/pic
......@@ -244,7 +244,7 @@ int pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stackSize)
// posix 之线程 设置CPU亲和力
/*
* Set the cpu affinity mask
*/ //亲和力主要用多CPU情况,意思就是调度任务被同一个CPU命中的概率,概率越高,亲和力就越好
*/ //亲和力主要用多CPU情况,意思就是调度任务被同一个CPU命中的概率,概率越高,亲和力就越好
int pthread_attr_setaffinity_np(pthread_attr_t* attr, size_t cpusetsize, const cpu_set_t* cpuset)
{
#if (LOSCFG_KERNEL_SMP == YES)
......
......@@ -614,7 +614,7 @@ static VOID SwtmrProc(UINTPTR tmrArg)
OsDispatch(pid, &info, OS_USER_KILL_PERMISSION);
return;
}
//posix 之创建定时器
int timer_create(clockid_t clockID, struct sigevent *evp, timer_t *timerID)
{
UINT32 ret;
......
......@@ -627,13 +627,13 @@ int osShellCmdPwd(int argc, const char **argv)
{
LOS_TaskUnlock();
PRINTK("pwd error: strncpy_s error!\n");
(void)closedir(dir);
(void)closedir(dir);//
return -1;
}
LOS_TaskUnlock();
PRINTK("%s\n", buf);
(void)closedir(dir);
(void)closedir(dir);//关闭目录
return 0;
}
......
......@@ -154,7 +154,7 @@ int SysGetiTimer(int which, struct itimerval *value)
return ret;
}
//系统调用 创建定时器
int SysTimerCreate(clockid_t clockID, struct sigevent *evp, timer_t *timerID)
{
int ret;
......
git add -A
git commit -m '上传telnet rfc854协议, posix thread 部分代码注释
git commit -m 'zzz/pic 上传
搜索 @note_pic 可以查看全部字符图
搜索 @note_why 是注者尚未看明白的地方,如果您看明白了,请告诉注者完善
搜索 @note_thinking 是注者的思考和吐槽的地方
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册