Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
da026e99
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
1 年多 前同步成功
通知
37
Star
125
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Musl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
da026e99
编写于
1月 06, 2022
作者:
些猜
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
版本回退
Signed-off-by:
caifuzhou
<
504631861@qq.com
>
上级
93285f22
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
13 deletion
+6
-13
porting/linux/user/include/pthread.h
porting/linux/user/include/pthread.h
+0
-7
porting/linux/user/src/internal/pthread_impl.h
porting/linux/user/src/internal/pthread_impl.h
+6
-6
未找到文件。
porting/linux/user/include/pthread.h
浏览文件 @
da026e99
...
@@ -10,19 +10,12 @@ extern "C" {
...
@@ -10,19 +10,12 @@ extern "C" {
* so users can not access the mutex-ower-ID.
* so users can not access the mutex-ower-ID.
* Thus we added this macro for getting the owner-ID
* Thus we added this macro for getting the owner-ID
* of the mutex. */
* of the mutex. */
#define MUTEX_OWNER __u.__vi[1] & 0x7fffffff
/* These macros provides macros for accessing inner
/* These macros provides macros for accessing inner
* attributes of the pthread_mutex_t struct.
* attributes of the pthread_mutex_t struct.
* It is intended for solving the coompiling failure
* It is intended for solving the coompiling failure
* of Dopra codes which claims that .__data.* realm
* of Dopra codes which claims that .__data.* realm
* can not be found in pthread_mutex_t. */
* can not be found in pthread_mutex_t. */
#define MUTEX_TYPE __u.__i[0]
#define MUTEX_LOCK __u.__vi[1]
#define MUTEX_WAITERS __u.__vi[2]
#define MUTEX_PREV __u.__p[3]
#define MUTEX_NEXT __u.__p[4]
#define MUTEX_COUNT __u.__i[5]
#define __NEED_time_t
#define __NEED_time_t
#define __NEED_clockid_t
#define __NEED_clockid_t
...
...
porting/linux/user/src/internal/pthread_impl.h
浏览文件 @
da026e99
...
@@ -84,12 +84,12 @@ struct __timer {
...
@@ -84,12 +84,12 @@ struct __timer {
* the open source society has made to these original macros,
* the open source society has made to these original macros,
* because patching will fail if the value of the _m_* are
* because patching will fail if the value of the _m_* are
* changed by musl society */
* changed by musl society */
#define _m_type
MUTEX_TYPE
#define _m_type
__u.__i[0]
#define _m_lock
MUTEX_LOCK
#define _m_lock
__u.__vi[1]
#define _m_waiters
MUTEX_WAITERS
#define _m_waiters
__u.__vi[2]
#define _m_prev
MUTEX_PREV
#define _m_prev
__u.__p[3]
#define _m_next
MUTEX_NEXT
#define _m_next
__u.__p[4]
#define _m_count
MUTEX_COUNT
#define _m_count
__u.__i[5]
#define _c_shared __u.__p[0]
#define _c_shared __u.__p[0]
#define _c_seq __u.__vi[2]
#define _c_seq __u.__vi[2]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录