语言

Binder.FlushPendingCommands 方法

定义

将当前线程中挂起的任何 Binder 命令刷新到内核驱动程序。

[Android.Runtime.Register("flushPendingCommands", "()V", "")]
public static void FlushPendingCommands();
[<Android.Runtime.Register("flushPendingCommands", "()V", "")>]
static member FlushPendingCommands : unit -> unit
特性

注解

将当前线程中挂起的任何 Binder 命令刷新到内核驱动程序。 在执行长时间可能阻止的操作之前,这非常有用,以确保释放了任何挂起的对象引用,以防止进程保留的时间超过它所需的对象。

Java文档android.os.Binder.flushPendingCommands()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于