We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MarsServiceProxy.cancel(MarsTaskWrapper marsTaskWrapper)这个api是无效的
MarsServiceProxy.cancel(MarsTaskWrapper marsTaskWrapper)
MarsServiceProxy通过维护一个WRAPPER_TO_TASK_ID来对应上层MarsTaskWrapper和taskId,但是app进程传递过来的MarsTaskWrapper经过aidl之后,每次都是不同实例,因此在mars这个进程已经无法和taskId对应了。
MarsServiceProxy
WRAPPER_TO_TASK_ID
MarsTaskWrapper
taskId
例如在app进程中使用MarsTaskWrapper的实例A发送,在mars进程变成实例B,与taskId=1对应;但是当取消这个请求时,app进程再次传递A过来,在mars进程变成实例C,无法找到相应taskId,也就无法使用StnLogic.stopTask(taskID)来停止
StnLogic.stopTask(taskID)
The text was updated successfully, but these errors were encountered:
fixed in dev branch
Sorry, something went wrong.
kirozhao
No branches or pull requests
MarsServiceProxy.cancel(MarsTaskWrapper marsTaskWrapper)
这个api是无效的MarsServiceProxy
通过维护一个WRAPPER_TO_TASK_ID
来对应上层MarsTaskWrapper
和taskId
,但是app进程传递过来的MarsTaskWrapper
经过aidl之后,每次都是不同实例,因此在mars这个进程已经无法和taskId对应了。例如在app进程中使用MarsTaskWrapper的实例A发送,在mars进程变成实例B,与taskId=1对应;但是当取消这个请求时,app进程再次传递A过来,在mars进程变成实例C,无法找到相应taskId,也就无法使用
StnLogic.stopTask(taskID)
来停止The text was updated successfully, but these errors were encountered: