You need to sign in or sign up before continuing.
fix:修复在使用GetCputime时由clockid计算pid或tid时出现的错误
【背景】原来代码在计算由clockid计算pid或tid时用的是移位的方式,由于对于有符号和无符号数结果可能不一致,故这里对计算方法做了修改,修改为计算clockid的逆运算。
【修改方案】
计算pid或tid为计算clockid的逆运算
re #I4249G
Signed-off-by: Nvcbchang <vcbchang@qq.com>
Change-Id: I2952232ec7d8fc2d0c47163b00d0c772648a2bf8
Showing
想要评论请 注册 或 登录