MessageBufferPool$4.smali

.class Lio/rong/imlib/destruct/MessageBufferPool$4;
.super Ljava/lang/Object;
.source "MessageBufferPool.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lio/rong/imlib/destruct/MessageBufferPool;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lio/rong/imlib/destruct/MessageBufferPool;


# direct methods
.method constructor <init>(Lio/rong/imlib/destruct/MessageBufferPool;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lio/rong/imlib/destruct/MessageBufferPool$4;->this$0:Lio/rong/imlib/destruct/MessageBufferPool;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 5

    .line 1
    iget-object v0, p0, Lio/rong/imlib/destruct/MessageBufferPool$4;->this$0:Lio/rong/imlib/destruct/MessageBufferPool;

    # getter for: Lio/rong/imlib/destruct/MessageBufferPool;->mMessageList:Ljava/util/Map;
    invoke-static {v0}, Lio/rong/imlib/destruct/MessageBufferPool;->access$000(Lio/rong/imlib/destruct/MessageBufferPool;)Ljava/util/Map;

    move-result-object v0

    monitor-enter v0

    .line 2
    :try_start_7
    iget-object v1, p0, Lio/rong/imlib/destruct/MessageBufferPool$4;->this$0:Lio/rong/imlib/destruct/MessageBufferPool;

    # getter for: Lio/rong/imlib/destruct/MessageBufferPool;->mMessageList:Ljava/util/Map;
    invoke-static {v1}, Lio/rong/imlib/destruct/MessageBufferPool;->access$000(Lio/rong/imlib/destruct/MessageBufferPool;)Ljava/util/Map;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_15
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_2d

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/Map$Entry;

    .line 3
    invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lio/rong/imlib/model/Message;

    .line 4
    iget-object v3, p0, Lio/rong/imlib/destruct/MessageBufferPool$4;->this$0:Lio/rong/imlib/destruct/MessageBufferPool;

    # invokes: Lio/rong/imlib/destruct/MessageBufferPool;->sendMessage(Lio/rong/imlib/model/Message;)V
    invoke-static {v3, v2}, Lio/rong/imlib/destruct/MessageBufferPool;->access$600(Lio/rong/imlib/destruct/MessageBufferPool;Lio/rong/imlib/model/Message;)V

    goto :goto_15

    .line 5
    :cond_2d
    iget-object v1, p0, Lio/rong/imlib/destruct/MessageBufferPool$4;->this$0:Lio/rong/imlib/destruct/MessageBufferPool;

    # getter for: Lio/rong/imlib/destruct/MessageBufferPool;->mMessageList:Ljava/util/Map;
    invoke-static {v1}, Lio/rong/imlib/destruct/MessageBufferPool;->access$000(Lio/rong/imlib/destruct/MessageBufferPool;)Ljava/util/Map;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Map;->clear()V

    .line 6
    iget-object v1, p0, Lio/rong/imlib/destruct/MessageBufferPool$4;->this$0:Lio/rong/imlib/destruct/MessageBufferPool;

    const/4 v2, 0x0

    # setter for: Lio/rong/imlib/destruct/MessageBufferPool;->isActive:Z
    invoke-static {v1, v2}, Lio/rong/imlib/destruct/MessageBufferPool;->access$102(Lio/rong/imlib/destruct/MessageBufferPool;Z)Z

    .line 7
    monitor-exit v0

    return-void

    :catchall_3e
    move-exception v1

    monitor-exit v0
    :try_end_40
    .catchall {:try_start_7 .. :try_end_40} :catchall_3e

    goto :goto_42

    :goto_41
    throw v1

    :goto_42
    goto :goto_41
.end method